fromJson static method

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

Implementation

@visibleForTesting
static Size? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  return new Size(jsonObject["width"], jsonObject["height"]);
}