fromMap static method
override
Construct from Map.
Implementation
static InputPersonalDocument? 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 files = List<InputFile>.from(
(_map["files"] ?? []).map(
(e) => InputFile.fromMap(e),
),
);
var translation = List<InputFile>.from(
(_map["translation"] ?? []).map(
(e) => InputFile.fromMap(e),
),
);
return InputPersonalDocument(
extra: extra,
clientId: clientId,
files: files,
translation: translation,
);
}