toJson method

Map<String, Object> toJson ()

Implementation

core.Map<core.String, core.Object> toJson() {
  final core.Map<core.String, core.Object> _json =
      new core.Map<core.String, core.Object>();
  if (id != null) {
    _json["id"] = id;
  }
  if (width != null) {
    _json["width"] = width;
  }
  if (xCoordinate != null) {
    _json["xCoordinate"] = xCoordinate;
  }
  if (yCoordinate != null) {
    _json["yCoordinate"] = yCoordinate;
  }
  return _json;
}