fromJson static method

Coordinate? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

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

  return result;
}