fromJson static method
Implementation
static DetectFacesResponse? fromJson(jsonObject) {
if (jsonObject == null) return null;
var result = new DetectFacesResponse();
result.detection = DetectFaceResult.fromJson(jsonObject["detection"]);
result.scenario = jsonObject["scenario"];
result.error = DetectFacesErrorException.fromJson(jsonObject["error"]);
if (jsonObject["allDetections"] != null)
for (var item in jsonObject["allDetections"])
result.allDetections.add(DetectFaceResult.fromJson(item));
return result;
}