toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'webPage',
if (extra != null) '@extra': extra,
'url': url,
'display_url': display_url,
'type': type,
'site_name': site_name,
'title': title,
'description': description,
'photo': photo,
'embed_url': embed_url,
'embed_type': embed_type,
'embed_width': embed_width,
'embed_height': embed_height,
'duration': duration,
'author': author,
'animation': animation,
'audio': audio,
'document': document,
'sticker': sticker,
'video': video,
'video_note': video_note,
'voice_note': voice_note,
'story_sender_chat_id': story_sender_chat_id,
'story_id': story_id,
'instant_view_version': instant_view_version
};
}