PassportData.fromJson constructor

PassportData.fromJson(
  1. Map<String, dynamic> json
)

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']!),
  );
}