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