fromJson static method

ChatMemberUpdated fromJson(
  1. Map<String, dynamic> json
)

Creates a object from a json

Implementation

static ChatMemberUpdated fromJson(Map<String, dynamic> json) {
  return ChatMemberUpdated(
    chat: Chat.fromJson(json['chat']!),
    from: User.fromJson(json['from']!),
    date: json['date']!,
    oldChatMember: ChatMember.fromJson(json['old_chat_member']!),
    newChatMember: ChatMember.fromJson(json['new_chat_member']!),
    inviteLink: callIfNotNull(ChatInviteLink.fromJson, json['invite_link']),
  );
}