toJson method

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

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "id": id,
    "chat_is_channel": chatIsChannel,
    "restrict_chat_is_forum": restrictChatIsForum,
    "chat_is_forum": chatIsForum,
    "restrict_chat_has_username": restrictChatHasUsername,
    "chat_has_username": chatHasUsername,
    "chat_is_created": chatIsCreated,
    "user_administrator_rights": userAdministratorRights?.toJson(),
    "bot_administrator_rights": botAdministratorRights?.toJson(),
    "bot_is_member": botIsMember,
  };
}