toJson method
Implementation
@override
Map<String, dynamic> toJson([dynamic extra]) {
return {
"@type": CONSTRUCTOR,
"url": url,
"html": html,
"poster_photo": posterPhoto?.toJson(),
"width": width,
"height": height,
"caption": caption.toJson(),
"is_full_width": isFullWidth,
"allow_scrolling": allowScrolling,
};
}