fromMap static method
override
Construct from Map.
Implementation
static PassportAuthorizationForm? 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 id = _map['id']! as int;
var required_elements = List<PassportRequiredElement>.from(
(_map["required_elements"] ?? []).map(
(e) => PassportRequiredElement.fromMap(e),
),
);
var privacy_policy_url = _map['privacy_policy_url']! as String;
return PassportAuthorizationForm(
extra: extra,
clientId: clientId,
id: id,
required_elements: required_elements,
privacy_policy_url: privacy_policy_url,
);
}