fromJson static method
Implementation
@visibleForTesting
static SearchPerson fromJson(jsonObject) {
var result = SearchPerson._privateConstructor();
if (jsonObject["images"] != null) {
for (var item in jsonObject["images"]) {
result._images.add(SearchPersonImage.fromJson(item)!);
}
}
result._detection = SearchPersonDetection.fromJson(jsonObject["detection"]);
result.name = result.name = jsonObject["name"];
result._updatedAt = DateTime.parse(jsonObject["updatedAt"]);
result._groups = jsonObject["groups"];
result._id = jsonObject["id"];
result.metadata = jsonObject["metadata"];
result._createdAt = DateTime.parse(jsonObject["createdAt"]);
return result;
}