fromJson static method

ImageQualityResult? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.name = jsonObject["name"];
  result.group = jsonObject["group"];
  result.status = jsonObject["status"];
  result.range = ImageQualityRange.fromJson(jsonObject["range"]);
  result.value =
      jsonObject["value"] == null ? null : jsonObject["value"].toDouble();

  return result;
}