toJson method

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

Converts an InlineQueryResultGame object to a JSON map

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'type': type.value,
    'id': id,
    'game_short_name': gameShortName,
    'reply_markup': replyMarkup?.toJson(),
  }..removeWhere(_nullFilter);
}