toJson method

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

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@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,
    "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,
  };
}