fromJson static method

Rect? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.bottom = jsonObject["bottom"];
  result.top = jsonObject["top"];
  result.left = jsonObject["left"];
  result.right = jsonObject["right"];

  return result;
}