fromJson static method
Implementation
static DetectFaceResult? fromJson(jsonObject) {
if (jsonObject == null) return null;
var result = new DetectFaceResult();
if (jsonObject["quality"] != null)
for (var item in jsonObject["quality"])
result.quality.add(ImageQualityResult.fromJson(item));
if (jsonObject["attributes"] != null)
for (var item in jsonObject["attributes"])
result.attributes.add(DetectFacesAttributeResult.fromJson(item));
if (jsonObject["landmarks"] != null)
for (var item in jsonObject["landmarks"])
result.landmarks.add(Point.fromJson(item));
result.crop = jsonObject["crop"];
result.faceRect = Rect.fromJson(jsonObject["faceRect"]);
result.originalRect = Rect.fromJson(jsonObject["originalRect"]);
result.isQualityCompliant = jsonObject["isQualityCompliant"];
return result;
}