toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'messageExtendedMediaPreview',
if (extra != null) '@extra': extra,
'width': width,
'height': height,
'duration': duration,
'minithumbnail': minithumbnail,
'caption': caption
};
}