toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'type': type ?? '',
      'nationality': nationality ?? '',
      'surname': surname ?? '',
      'givenName': givenName ?? '',
      'passportNumber': passportNumber ?? '',
      'issuingCountry': issuingCountry ?? '',
      'birthDate': birthDate ?? '',
      'gender': gender ?? '',
      'expiration': expiration ?? '',
      'lines': lines,
    };