toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'x': x,
  'y': y,
  'w': width,
  'h': height,
  if (dx != null) 'dx': dx,
  if (dy != null) 'dy': dy,
  if (toward != null) 'toward': toward,
};