toJson method

Map<String, dynamic> toJson()

Converts a CallbackQuery object to JSON.

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'from': from.toJson(),
    'message': message?.toJson(),
    'inline_message_id': inlineMessageId,
    'chat_instance': chatInstance,
    'data': data,
    'game_short_name': gameShortName,
  }..removeWhere(_nullFilter);
}