OCRResponse.fromJson constructor Null safety

OCRResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory OCRResponse.fromJson(Map<String, dynamic> json) {
  return OCRResponse(
    birthDate: json['BirthDate'],
    placeOfBirth: json['PlaceOfBirth'],
    category: json['Category'],
    expeditionCity: json['ExpeditionCity'],
    expeditionState: json['ExpeditionState'],
    expeditionDate: json['ExpeditionDate'],
    expirationDate: json['ExpirationDate'],
    fatherName: json['FatherName'],
    motherName: json['MotherName'],
    firstLicenseDate: json['FirstLicenseDate'],
    name: json['Name'],
    rg: json['RG'],
    code: json['Code'],
    registrationNumber: json['RegistrationNumber'],
    renach: json['Renach'],
    securityCode: json['SecurityCode'],
    mirrorNumber: json['MirrorNumber'],
    observation: json['Observation'],
  );
}