fromMap static method
override
Construct from Map.
Implementation
static ChatEventAction? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'chatEventUsernameChanged':
return ChatEventUsernameChanged.fromMap(_map);
case 'chatEventInviteLinkDeleted':
return ChatEventInviteLinkDeleted.fromMap(_map);
case 'chatEventLinkedChatChanged':
return ChatEventLinkedChatChanged.fromMap(_map);
case 'chatEventMessageAutoDeleteTimeChanged':
return ChatEventMessageAutoDeleteTimeChanged.fromMap(_map);
case 'chatEventInviteLinkRevoked':
return ChatEventInviteLinkRevoked.fromMap(_map);
case 'chatEventVideoChatEnded':
return ChatEventVideoChatEnded.fromMap(_map);
case 'chatEventForumTopicCreated':
return ChatEventForumTopicCreated.fromMap(_map);
case 'chatEventMemberJoinedByRequest':
return ChatEventMemberJoinedByRequest.fromMap(_map);
case 'chatEventVideoChatCreated':
return ChatEventVideoChatCreated.fromMap(_map);
case 'chatEventForumTopicPinned':
return ChatEventForumTopicPinned.fromMap(_map);
case 'chatEventTitleChanged':
return ChatEventTitleChanged.fromMap(_map);
case 'chatEventInviteLinkEdited':
return ChatEventInviteLinkEdited.fromMap(_map);
case 'chatEventSlowModeDelayChanged':
return ChatEventSlowModeDelayChanged.fromMap(_map);
case 'chatEventIsForumToggled':
return ChatEventIsForumToggled.fromMap(_map);
case 'chatEventHasProtectedContentToggled':
return ChatEventHasProtectedContentToggled.fromMap(_map);
case 'chatEventMessageUnpinned':
return ChatEventMessageUnpinned.fromMap(_map);
case 'chatEventMemberJoinedByInviteLink':
return ChatEventMemberJoinedByInviteLink.fromMap(_map);
case 'chatEventInvitesToggled':
return ChatEventInvitesToggled.fromMap(_map);
case 'chatEventPermissionsChanged':
return ChatEventPermissionsChanged.fromMap(_map);
case 'chatEventSignMessagesToggled':
return ChatEventSignMessagesToggled.fromMap(_map);
case 'chatEventPollStopped':
return ChatEventPollStopped.fromMap(_map);
case 'chatEventLocationChanged':
return ChatEventLocationChanged.fromMap(_map);
case 'chatEventAvailableReactionsChanged':
return ChatEventAvailableReactionsChanged.fromMap(_map);
case 'chatEventStickerSetChanged':
return ChatEventStickerSetChanged.fromMap(_map);
case 'chatEventHasAggressiveAntiSpamEnabledToggled':
return ChatEventHasAggressiveAntiSpamEnabledToggled.fromMap(_map);
case 'chatEventMemberRestricted':
return ChatEventMemberRestricted.fromMap(_map);
case 'chatEventIsAllHistoryAvailableToggled':
return ChatEventIsAllHistoryAvailableToggled.fromMap(_map);
case 'chatEventMemberJoined':
return ChatEventMemberJoined.fromMap(_map);
case 'chatEventForumTopicEdited':
return ChatEventForumTopicEdited.fromMap(_map);
case 'chatEventMemberInvited':
return ChatEventMemberInvited.fromMap(_map);
case 'chatEventMemberPromoted':
return ChatEventMemberPromoted.fromMap(_map);
case 'chatEventForumTopicToggleIsClosed':
return ChatEventForumTopicToggleIsClosed.fromMap(_map);
case 'chatEventMemberLeft':
return ChatEventMemberLeft.fromMap(_map);
case 'chatEventVideoChatMuteNewParticipantsToggled':
return ChatEventVideoChatMuteNewParticipantsToggled.fromMap(_map);
case 'chatEventVideoChatParticipantIsMutedToggled':
return ChatEventVideoChatParticipantIsMutedToggled.fromMap(_map);
case 'chatEventForumTopicDeleted':
return ChatEventForumTopicDeleted.fromMap(_map);
case 'chatEventMessagePinned':
return ChatEventMessagePinned.fromMap(_map);
case 'chatEventMessageDeleted':
return ChatEventMessageDeleted.fromMap(_map);
case 'chatEventDescriptionChanged':
return ChatEventDescriptionChanged.fromMap(_map);
case 'chatEventActiveUsernamesChanged':
return ChatEventActiveUsernamesChanged.fromMap(_map);
case 'chatEventMessageEdited':
return ChatEventMessageEdited.fromMap(_map);
case 'chatEventPhotoChanged':
return ChatEventPhotoChanged.fromMap(_map);
case 'chatEventForumTopicToggleIsHidden':
return ChatEventForumTopicToggleIsHidden.fromMap(_map);
case 'chatEventVideoChatParticipantVolumeLevelChanged':
return ChatEventVideoChatParticipantVolumeLevelChanged.fromMap(_map);
case null:
default:
return null;
}
}