toJson method
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,
};