ChatMemberUpdated.fromJson constructor
Creates a new ChatMemberUpdated object from json.
Implementation
factory ChatMemberUpdated.fromJson(Map<String, dynamic> json) {
return ChatMemberUpdated(
chat: Chat.fromJson(json['chat'] as Map<String, dynamic>),
from: User.fromJson(json['from'] as Map<String, dynamic>),
date: json['date'] as int,
oldChatMember:
ChatMember.fromJson(json['old_chat_member'] as Map<String, dynamic>),
newChatMember:
ChatMember.fromJson(json['new_chat_member'] as Map<String, dynamic>),
inviteLink: json['invite_link'] == null
? null
: ChatInviteLink.fromJson(
json['invite_link'] as Map<String, dynamic>,
),
viaChatFolderInviteLink: json['via_chat_folder_invite_link'] as bool?,
viaJoinRequest: json['via_join_request'] as bool?,
);
}