toJson method

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

Converts an InlineQueryResultCachedMpeg4Gif object to a JSON map

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'type': type.value,
    'mpeg4_file_id': mpeg4FileId,
    'title': title,
    'caption': caption,
    'parse_mode': parseMode?.value,
    'caption_entities': captionEntities?.map((e) => e.toJson()).toList(),
    'reply_markup': replyMarkup?.toJson(),
    'input_message_content': inputMessageContent?.toJson(),
    'id': id,
    'show_caption_above_media': showCaptionAboveMedia,
  }..removeWhere(_nullFilter);
}