fromJson static method

CameraSize? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

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

  return result;
}