toJson method

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

Implementation

@override
Map<String, dynamic> toJson() => <String, dynamic>{
  'url': url,
  'html': html,
  'poster_photo': posterPhoto?.toJson(),
  'width': width,
  'height': height,
  'caption': caption?.toJson(),
  'is_full_width': isFullWidth,
  'allow_scrolling': allowScrolling,
  '@type': constructor,
};