toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'keyboardButtonTypeRequestChat',
    if (extra != null) '@extra': extra,
    'id': id,
    'chat_is_channel': chat_is_channel,
    'restrict_chat_is_forum': restrict_chat_is_forum,
    'chat_is_forum': chat_is_forum,
    'restrict_chat_has_username': restrict_chat_has_username,
    'chat_has_username': chat_has_username,
    'chat_is_created': chat_is_created,
    'user_administrator_rights': user_administrator_rights,
    'bot_administrator_rights': bot_administrator_rights,
    'bot_is_member': bot_is_member
  };
}