DocumentDataExtractorConfigurationElement.fromJson constructor
DocumentDataExtractorConfigurationElement.fromJson( - Map<String, dynamic> json
)
Implementation
factory DocumentDataExtractorConfigurationElement.fromJson(
Map<String, dynamic> json) {
String _type = json["_type"];
switch (_type) {
case "DateValidationConfiguration":
return DateValidationConfiguration.fromJson(json);
case "DeAddressParserConfiguration":
return DeAddressParserConfiguration.fromJson(json);
case "EuropeanHealthInsuranceCardConfiguration":
return EuropeanHealthInsuranceCardConfiguration.fromJson(json);
case "MRZFallbackConfiguration":
return MrzFallbackConfiguration.fromJson(json);
case "AutoFocusConfiguration":
return AutoFocusConfiguration.fromJson(json);
case "GlareDetectionConfiguration":
return GlareDetectionConfiguration.fromJson(json);
case "DocumentDataExtractorCommonConfiguration":
return DocumentDataExtractorCommonConfiguration.fromJson(json);
default:
throw ArgumentError("Invalid polymorphic type: $_type");
}
}