fromJson static method

  1. @visibleForTesting
Point? fromJson(
  1. dynamic jsonObject
)

Implementation

@visibleForTesting
static Point? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = Point._privateConstructor();

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

  return result;
}