fromMap static method
override
Construct from Map.
Implementation
static MessagePassportDataReceived? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var elements = List<EncryptedPassportElement>.from(
(_map["elements"] ?? []).map(
(e) => EncryptedPassportElement.fromMap(e),
),
);
var credentials = EncryptedCredentials.fromMap(_map['credentials'])!;
return MessagePassportDataReceived(
extra: extra,
clientId: clientId,
elements: elements,
credentials: credentials,
);
}