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