MessagePassportDataReceived.fromJson constructor

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

Parse from a json

Implementation

factory MessagePassportDataReceived.fromJson(Map<String, dynamic> json) => MessagePassportDataReceived(
  elements: List<EncryptedPassportElement>.from((json['elements'] ?? []).map((item) => EncryptedPassportElement.fromJson(item)).toList()),
  credentials: EncryptedCredentials.fromJson(json['credentials']),
);