toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'x': x,
    'y': y,
    if (radiusX != null) 'radiusX': radiusX,
    if (radiusY != null) 'radiusY': radiusY,
    if (rotationAngle != null) 'rotationAngle': rotationAngle,
    if (force != null) 'force': force,
    if (tangentialPressure != null) 'tangentialPressure': tangentialPressure,
    if (tiltX != null) 'tiltX': tiltX,
    if (tiltY != null) 'tiltY': tiltY,
    if (twist != null) 'twist': twist,
    if (id != null) 'id': id,
  };
}