toJson method

Map<String, dynamic> toJson()

Converts a MaskPosition object to a JSON map

Implementation

Map<String, dynamic> toJson() {
  return {
    'point': point.toJson(),
    'x_shift': xShift,
    'y_shift': yShift,
    'scale': scale,
  };
}