toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'pageBlockEmbedded',
    if (extra != null) '@extra': extra,
    'url': url,
    'html': html,
    'poster_photo': poster_photo,
    'width': width,
    'height': height,
    'caption': caption,
    'is_full_width': is_full_width,
    'allow_scrolling': allow_scrolling
  };
}