toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'id': id,
    'from': from,
    'message': message,
    'inline_message_id': inlineMessageId,
    'chat_instance': chatInstance,
    'data': data,
    'game_short_name': gameShortName,
  }..removeWhere((_, v) => v == null);
}