toJson method

  1. @override
Map<String, dynamic> toJson([
  1. dynamic extra
])
override

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "chat_id": chatId,
    "actor_user_id": actorUserId,
    "date": date,
    "invite_link": inviteLink?.toJson(),
    "via_chat_folder_invite_link": viaChatFolderInviteLink,
    "old_chat_member": oldChatMember.toJson(),
    "new_chat_member": newChatMember.toJson(),
  };
}