fromJson static method

Rect? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

  result._bottom = jsonObject["bottom"];
  result._top = jsonObject["top"];
  result._left = jsonObject["left"];
  result._right = jsonObject["right"];

  return result;
}