fromJson static method

Point? fromJson(
  1. dynamic jsonObject
)

Implementation

static Point? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = new Point();

  result.x = jsonObject["x"];
  result.y = jsonObject["y"];

  return result;
}