UniversalIdConfig.fromJson constructor
UniversalIdConfig.fromJson(
- Map<String, dynamic> json
)
Implementation
factory UniversalIdConfig.fromJson(Map<String, dynamic> json) =>
UniversalIdConfig(
allowedLayouts: json["allowedLayouts"] == null
? null
: AllowedLayouts.fromJson(json["allowedLayouts"]),
alphabet: alphabetValues.map[json["alphabet"]],
drivingLicense: json["drivingLicense"] == null
? null
: LayoutDrivingLicense.fromJson(json["drivingLicense"]),
faceDetectionEnabled: json["faceDetectionEnabled"],
idFront: json["idFront"] == null
? null
: LayoutIdFront.fromJson(json["idFront"]),
insuranceCard: json["insuranceCard"] == null
? null
: LayoutInsuranceCard.fromJson(json["insuranceCard"]),
mrz: json["mrz"] == null ? null : LayoutMrz.fromJson(json["mrz"]),
);