toJson method

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

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
      '@type': CONSTRUCTOR,
      'url': url,
      'display_url': displayUrl,
      'type': type,
      'site_name': siteName,
      'title': title,
      'description': description.toJson(),
      'photo': photo?.toJson(),
      'embed_url': embedUrl,
      'embed_type': embedType,
      'embed_width': embedWidth,
      'embed_height': embedHeight,
      'duration': duration,
      'author': author,
      'has_large_media': hasLargeMedia,
      'show_large_media': showLargeMedia,
      'skip_confirmation': skipConfirmation,
      'show_above_text': showAboveText,
      'animation': animation?.toJson(),
      'audio': audio?.toJson(),
      'document': document?.toJson(),
      'sticker': sticker?.toJson(),
      'video': video?.toJson(),
      'video_note': videoNote?.toJson(),
      'voice_note': voiceNote?.toJson(),
      'story_sender_chat_id': storySenderChatId,
      'story_id': storyId,
      'instant_view_version': instantViewVersion,
    };