core.Map<core.String, core.dynamic> toJson() => { if (animationType != null) 'animationType': animationType!, };