fromJson static method

DetectFacesAttributeResult? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.attribute = jsonObject["attribute"];
  result.value = jsonObject["value"];
  result.range = ImageQualityRange.fromJson(jsonObject["range"]);
  result.confidence = jsonObject["confidence"] == null
      ? null
      : jsonObject["confidence"].toDouble();

  return result;
}