toJson method

Map<String, dynamic> toJson()

Converts a KeyboardButtonRequestChat to JSON object

Implementation

Map<String, dynamic> toJson() {
  return {
    'request_id': requestId,
    'chat_is_channel': chatIsChannel,
    'chat_is_forum': chatIsForum,
    'chat_has_username': chatHasUsername,
    'chat_is_created': chatIsCreated,
    'user_administrator_rights': userAdministratorRights?.toJson(),
    'bot_administrator_rights': botAdministratorRights?.toJson(),
    'bot_is_member': botIsMember,
    'request_photo': requestPhoto,
    'request_title': requestTitle,
    'request_username': requestUsername,
  }..removeWhere(_nullFilter);
}