toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'inputInlineQueryResultAnimation',
    if (extra != null) '@extra': extra,
    'id': id,
    'title': title,
    'thumbnail_url': thumbnail_url,
    'thumbnail_mime_type': thumbnail_mime_type,
    'video_url': video_url,
    'video_mime_type': video_mime_type,
    'video_duration': video_duration,
    'video_width': video_width,
    'video_height': video_height,
    'reply_markup': reply_markup,
    'input_message_content': input_message_content
  };
}