fromMap static method
override
Construct from Map.
Implementation
static InputIdentityDocument? 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 number = _map['number']! as String;
var expiration_date = Date.fromMap(_map['expiration_date']);
var front_side = InputFile.fromMap(_map['front_side'])!;
var reverse_side = InputFile.fromMap(_map['reverse_side']);
var selfie = InputFile.fromMap(_map['selfie']);
var translation = List<InputFile>.from(
(_map["translation"] ?? []).map(
(e) => InputFile.fromMap(e),
),
);
return InputIdentityDocument(
extra: extra,
clientId: clientId,
number: number,
expiration_date: expiration_date,
front_side: front_side,
reverse_side: reverse_side,
selfie: selfie,
translation: translation,
);
}