Object to Map serializer
@override Map<String, dynamic> toJson() { return { '@type': 'updateSavedAnimations', if (extra != null) '@extra': extra, 'animation_ids': animation_ids }; }