toMap method

Map toMap()

Implementation

Map toMap() {
  return {
    'pos': pos == null ? null : {'x': pos!.x, 'y': pos!.y},
    'rot': rot,
    'scale': scale == null ? null : {'x': scale!.x, 'y': scale!.y},
    'alignment': alignment?.alignment,
    'bounds_type': boundsType?.index,
    'bounds_alignment': boundsAlignment?.alignment,
    'bounds': bounds == null ? null : {'x': bounds!.x, 'y': bounds!.y},
  };
}