Map<String, dynamic> toJson() => { 'width': width, 'height': height, 'originX': originX, 'originY': originY, 'animationMode': animationMode, };