toJson method
Converts a InputPaidMediaVideo object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
return {
'type': type.value,
'media': media.getValue('media'),
'thumbnail': thumbnail?.getValue('thumbnail'),
'width': width,
'height': height,
'duration': duration,
'supports_streaming': supportsStreaming,
}..removeWhere(_nullFilter);
}