toMap method
Implementation
Map<String, dynamic> toMap() {
return {
// Identity
'id': id,
'pin': pin,
'pinfl': pinfl,
'docPinfl': docPinfl,
'transactionId': transactionId,
'currentPinpp': currentPinpp,
// Document Information
'document': document,
'currentDocument': currentDocument,
'docSeria': docSeria,
'docNumber': docNumber,
'documentType': documentType,
'dateIssue': dateIssue,
'dateExpiry': dateExpiry,
// Names
'name': name,
'firstName': firstName,
'lastName': lastName,
'patronym': patronym,
'surname': surname,
'givenName': givenName,
// Latin variants
'namelat': namelat,
'surnamelat': surnamelat,
'patronymlat': patronymlat,
// Cyrillic variants
'namecyr': namecyr,
'surnamecyr': surnamecyr,
'patronymcyr': patronymcyr,
// English variants
'engname': engname,
'engsurname': engsurname,
'engpatronym': engpatronym,
'patronymEn': patronymEn,
// PINPP variants
'pinpps1': pinpps1,
'pinpps2': pinpps2,
'pinpps3': pinpps3,
'pinpps4': pinpps4,
// Issuing authority
'givePlace': givePlace,
'givePlaceName': givePlaceName,
// Birth information
'birthDate': birthDate,
'birthPlace': birthPlace,
'birthplace': birthplace,
'birthCountry': birthCountry,
'birthCountryName': birthCountryName,
'birthcountry': birthcountry,
'birthcountryid': birthcountryid,
// Citizenship and Nationality
'citizenship': citizenship,
'citizenshipName': citizenshipName,
'citizenshipid': citizenshipid,
'nationality': nationality,
'nationalityName': nationalityName,
'nationalityid': nationalityid,
// Gender and Status
'gender': gender,
'genderName': genderName,
'sex': sex,
'subjectState': subjectState,
'subjectStateName': subjectStateName,
'livestatus': livestatus,
// Score
'score': score,
// Media
'photo': photo,
'signature': signature,
'capture': capture,
// Additional Documents
'documents': documents?.map((e) => e.toMap()).toList(),
'foreignDocuments': foreignDocuments?.map((e) => e.toMap()).toList(),
// Nested format fields
'juralTypeId': juralTypeId,
'customerProfileId': customerProfileId,
'languageId': languageId,
'personalData': personalData?.toMap(),
'attributes': attributes?.map((e) => e.toMap()).toList(),
'customer_files': customerFiles?.toMap(),
'is_external_data': isExternalData,
};
}