ThreeLineMrzFinderLayoutPreset.fromJson constructor
ThreeLineMrzFinderLayoutPreset.fromJson( - Map<String, dynamic> json
)
Implementation
factory ThreeLineMrzFinderLayoutPreset.fromJson(Map<String, dynamic> json) =>
ThreeLineMrzFinderLayoutPreset(
mrzTextLine1: json.containsKey("mrzTextLine1")
? json["mrzTextLine1"] as String
: "I<USA2342353464<<<<<<<<<<<<<<<",
mrzTextLine2: json.containsKey("mrzTextLine2")
? json["mrzTextLine2"] as String
: "9602300M2904076USA<<<<<<<<<<<2",
mrzTextLine3: json.containsKey("mrzTextLine3")
? json["mrzTextLine3"] as String
: "SMITH<<JACK<<<<<<<<<<<<<<<<<<<",
adjustedFinderAspectRatio: json.containsKey("adjustedFinderAspectRatio")
? (json["adjustedFinderAspectRatio"] as num).toDouble()
: 4.3125,
);