fromMap static method
override
Construct from Map.
Implementation
static ChatAction? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'chatActionRecordingVideo':
return ChatActionRecordingVideo.fromMap(_map);
case 'chatActionUploadingDocument':
return ChatActionUploadingDocument.fromMap(_map);
case 'chatActionStartPlayingGame':
return ChatActionStartPlayingGame.fromMap(_map);
case 'chatActionChoosingContact':
return ChatActionChoosingContact.fromMap(_map);
case 'chatActionRecordingVideoNote':
return ChatActionRecordingVideoNote.fromMap(_map);
case 'chatActionWatchingAnimations':
return ChatActionWatchingAnimations.fromMap(_map);
case 'chatActionChoosingSticker':
return ChatActionChoosingSticker.fromMap(_map);
case 'chatActionUploadingVideo':
return ChatActionUploadingVideo.fromMap(_map);
case 'chatActionChoosingLocation':
return ChatActionChoosingLocation.fromMap(_map);
case 'chatActionCancel':
return ChatActionCancel.fromMap(_map);
case 'chatActionTyping':
return ChatActionTyping.fromMap(_map);
case 'chatActionUploadingPhoto':
return ChatActionUploadingPhoto.fromMap(_map);
case 'chatActionUploadingVoiceNote':
return ChatActionUploadingVoiceNote.fromMap(_map);
case 'chatActionUploadingVideoNote':
return ChatActionUploadingVideoNote.fromMap(_map);
case 'chatActionRecordingVoiceNote':
return ChatActionRecordingVoiceNote.fromMap(_map);
case null:
default:
return null;
}
}