toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'inputMessageVideo',
if (extra != null) '@extra': extra,
'video': video,
'thumbnail': thumbnail,
'added_sticker_file_ids': added_sticker_file_ids,
'duration': duration,
'width': width,
'height': height,
'supports_streaming': supports_streaming,
'caption': caption,
'self_destruct_type': self_destruct_type,
'has_spoiler': has_spoiler
};
}