UpdateChatMember.fromJson constructor

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

Parse from a json

Implementation

factory UpdateChatMember.fromJson(Map<String, dynamic> json) => UpdateChatMember(
  chatId: json['chat_id'],
  actorUserId: json['actor_user_id'],
  date: json['date'],
  inviteLink: json['invite_link'] == null ? null : ChatInviteLink.fromJson(json['invite_link']),
  oldChatMember: ChatMember.fromJson(json['old_chat_member']),
  newChatMember: ChatMember.fromJson(json['new_chat_member']),
  extra: json['@extra'],
  clientId: json['@client_id'],
);