fromJson static method

ImageQualityGroup? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

  result._count = jsonObject["count"];
  result._result = CheckResult.getByValue(jsonObject["result"])!;
  result._pageIndex = jsonObject["pageIndex"];
  for (var item in jsonObject["imageQualityList"]) {
    result._imageQualityList.addSafe(ImageQuality.fromJson(item));
  }

  return result;
}