fromJson static method

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

Implementation

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

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

  return result;
}