fromJson static method

Size? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.width = jsonObject["width"];
  result.height = jsonObject["height"];

  return result;
}