toJson method

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

Implementation

@override
Map<String, dynamic> toJson() => <String, dynamic>{
  '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,
  'request_title': requestTitle,
  'request_username': requestUsername,
  'request_photo': requestPhoto,
  '@type': constructor,
};