toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'pageBlockVideo',
    if (extra != null) '@extra': extra,
    'video': video,
    'caption': caption,
    'need_autoplay': need_autoplay,
    'is_looped': is_looped
  };
}