toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'x': x,
  'y': y,
  'width': width,
  'height': height,
};