fromMap static method
override
Construct from Map.
Implementation
static PassportElementError? 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 type = PassportElementType.fromMap(_map['type'])!;
var message = _map['message']! as String;
var source = PassportElementErrorSource.fromMap(_map['source'])!;
return PassportElementError(
extra: extra,
clientId: clientId,
type: type,
message: message,
source: source,
);
}