fromJson static method

CameraSize? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

static CameraSize? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  return CameraSize(jsonObject["width"], jsonObject["height"]);
}