toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'type': type,
    'id': id,
    'mpeg4_file_id': mpeg4FileId,
    'title': title,
    'caption': caption,
    'parse_mode': parseMode,
    'caption_entities': captionEntities,
    'reply_markup': replyMarkup,
    'input_message_content': inputMessageContent,
  }..removeWhere((_, v) => v == null);
}