PassportData.fromJson constructor
Creates a PassportData object from JSON object
Implementation
factory PassportData.fromJson(Map<String, dynamic> json) {
return PassportData(
data: (json['data'] as List<dynamic>)
.map((e) => EncryptedPassportElement.fromJson(e))
.toList(),
credentials: EncryptedCredentials.fromJson(json['credentials']!),
);
}