getValue method

  1. @override
Map<String, dynamic> getValue([
  1. String? field,
  2. String? thumb
])
override

Converts an InputMediaAnimation object to a JSON object

Implementation

@override
Map<String, dynamic> getValue([String? field, String? thumb]) {
  return {
    'type': type.value,
    'media': media.getValue(field),
    'thumbnail': thumbnail?.getValue(thumb),
    'caption': caption,
    'parse_mode': parseMode?.value,
    'caption_entities': captionEntities,
    'width': width,
    'height': height,
    'duration': duration,
    'has_spoiler': hasSpoiler,
    'show_caption_above_media': showCaptionAboveMedia,
  }..removeWhere(_nullFilter);
}