fromMap static method
override
Construct from Map.
Implementation
static InputFile? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'inputFileId':
return InputFileId.fromMap(_map);
case 'inputFileGenerated':
return InputFileGenerated.fromMap(_map);
case 'inputFileLocal':
return InputFileLocal.fromMap(_map);
case 'inputFileRemote':
return InputFileRemote.fromMap(_map);
case null:
default:
return null;
}
}