fromMap static method
override
Construct from Map.
Implementation
static InputChatPhoto? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'inputChatPhotoSticker':
return InputChatPhotoSticker.fromMap(_map);
case 'inputChatPhotoStatic':
return InputChatPhotoStatic.fromMap(_map);
case 'inputChatPhotoPrevious':
return InputChatPhotoPrevious.fromMap(_map);
case 'inputChatPhotoAnimation':
return InputChatPhotoAnimation.fromMap(_map);
case null:
default:
return null;
}
}