# EuropeanHealthInsuranceCardRecognizerConfiguration.fromJson constructor

EuropeanHealthInsuranceCardRecognizerConfiguration.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory EuropeanHealthInsuranceCardRecognizerConfiguration.fromJson(
            Map<String, dynamic> json) =>
        EuropeanHealthInsuranceCardRecognizerConfiguration(
          allowedCountries: json.containsKey("allowedCountries")
              ? (json["allowedCountries"] as List<dynamic>)
                  .map((it) => EuropeanHealthInsuranceCardIssuingCountry.values
                      .byName(it as String))
                  .toList()
              : [],
          minBirthYear: json.containsKey("minBirthYear")
              ? (json["minBirthYear"] as int)
              : 0,
          maxBirthYear: json.containsKey("maxBirthYear")
              ? (json["maxBirthYear"] as int)
              : 2999,
          minExpirationYear: json.containsKey("minExpirationYear")
              ? (json["minExpirationYear"] as int)
              : 0,
          maxExpirationYear: json.containsKey("maxExpirationYear")
              ? (json["maxExpirationYear"] as int)
              : 2999,
          maxCountryDetectionAttempts:
              json.containsKey("maxCountryDetectionAttempts")
                  ? (json["maxCountryDetectionAttempts"] as int)
                  : 5,
          minEqualFrameCount: json.containsKey("minEqualFrameCount")
              ? (json["minEqualFrameCount"] as int)
              : 4,
          maxAccumulatedFrameCount: json.containsKey("maxAccumulatedFrameCount")
              ? (json["maxAccumulatedFrameCount"] as int)
              : 10,
        );