toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'inputChatPhotoAnimation',
if (extra != null) '@extra': extra,
'animation': animation,
'main_frame_timestamp': main_frame_timestamp
};
}