# toJson method

Map<String, dynamic> toJson({

1. ToJsonConfiguration? config,

})

## Implementation

    Map<String, dynamic> toJson({ToJsonConfiguration? config}) {
      config = config ?? ToJsonConfiguration();
      Map<String, dynamic> obj = <String, dynamic>{};
      obj["allowedCountries"] = allowedCountries.map((it) => it.name).toList();
      obj["minBirthYear"] = minBirthYear;
      obj["maxBirthYear"] = maxBirthYear;
      obj["minExpirationYear"] = minExpirationYear;
      obj["maxExpirationYear"] = maxExpirationYear;
      obj["maxCountryDetectionAttempts"] = maxCountryDetectionAttempts;
      obj["minEqualFrameCount"] = minEqualFrameCount;
      obj["maxAccumulatedFrameCount"] = maxAccumulatedFrameCount;
      return obj;
    }