VizMrzComparisonResult.fromJSON constructor

VizMrzComparisonResult.fromJSON(
  1. Map<String, dynamic> json
)

Implementation

factory VizMrzComparisonResult.fromJSON(Map<String, dynamic> json) {
  return VizMrzComparisonResult._(
      json["checksPassed"] as bool,
      _StringComparisonCheck.fromJSON(json["fullNamesMatch"]),
      _StringComparisonCheck.fromJSON(json["documentNumbersMatch"]),
      _DateComparisonCheck.fromJSON(json["datesOfBirth"]),
      _DateComparisonCheck.fromJSON(json["datesOfExpiry"]),
      _StringComparisonCheck.fromJSON(json["issuingCountryIsoMatch"]),
      json["resultDescription"] as String);
}