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,
    "html": html,
    "poster_photo": posterPhoto?.toJson(),
    "width": width,
    "height": height,
    "caption": caption.toJson(),
    "is_full_width": isFullWidth,
    "allow_scrolling": allowScrolling,
  };
}