fromJson static method
Creates a object from a json
Implementation
static EncryptedPassportElement fromJson(Map<String, dynamic> json) {
return EncryptedPassportElement(
type: json['type']!,
data: json['data'],
phoneNumber: json['phone_number'],
email: json['email'],
files: callIfNotNull(PassportFile.listFromJsonArray, json['files']),
frontSide: callIfNotNull(PassportFile.fromJson, json['front_side']),
reverseSide: callIfNotNull(PassportFile.fromJson, json['reverse_side']),
selfie: callIfNotNull(PassportFile.fromJson, json['selfie']),
translation: callIfNotNull(
PassportFile.listFromJsonArray,
json['translation'],
),
hash: json['hash']!,
);
}