DocumentTypes.fromJson constructor
DocumentTypes.fromJson(
- Map<String, dynamic> json
)
Implementation
DocumentTypes.fromJson(Map<String, dynamic> json) {
passport = json["passport"];
selfie = json["selfie"];
videoSelfie = json["videoSelfie"];
drivingLicense = json["driving_license"] == null
? null
: List<String>.from(json["driving_license"]);
nationalIdentityCard = json["national_identity_card"] == null
? null
: List<String>.from(json["national_identity_card"]);
residencePermit = json["residence_permit"] == null
? null
: List<String>.from(json["residence_permit"]);
bankStatement = json["bank_statement"] == null
? null
: List<String>.from(json["bank_statement"]);
councilTaxBill = json["council_tax_bill"] == null
? null
: List<String>.from(json["council_tax_bill"]);
utilityBill = json["utility_bill"] == null
? null
: List<String>.from(json["utility_bill"]);
}