toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'storyVideo',
    if (extra != null) '@extra': extra,
    'duration': duration,
    'width': width,
    'height': height,
    'has_stickers': has_stickers,
    'is_animation': is_animation,
    'minithumbnail': minithumbnail,
    'thumbnail': thumbnail,
    'preload_prefix_size': preload_prefix_size,
    'video': video
  };
}