fromJson static method

  1. @visibleForTesting
ImageQualityResult? fromJson(
  1. dynamic jsonObject
)

Implementation

@visibleForTesting
static ImageQualityResult? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = ImageQualityResult._privateConstructor();

  result._group = ImageQualityGroupName.getByValue(jsonObject["group"])!;
  result._name =
      ImageQualityCharacteristicName.getByValue(jsonObject["name"])!;
  result._status = ImageQualityResultStatus.getByValue(jsonObject["status"])!;
  result._value = _toDouble(jsonObject["value"])!;
  result._range = ImageQualityRange.fromJson(jsonObject["range"])!;

  return result;
}