UpdateChatMember.fromJson constructor
Parses a UpdateChatMember from TDLib JSON.
Implementation
factory UpdateChatMember.fromJson(Map<String, dynamic> json) =>
UpdateChatMember(
chatId: _readInt(json['chat_id']),
actorUserId: _readInt(json['actor_user_id']),
date: _readInt(json['date']),
inviteLink: _readOptional(json['invite_link'], ChatInviteLink.fromJson),
viaChatFolderInviteLink: _readBool(json['via_chat_folder_invite_link']),
oldChatMember:
_readObject(json['old_chat_member'], ChatMember.fromJson),
newChatMember:
_readObject(json['new_chat_member'], ChatMember.fromJson),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);