fromJson static method
Implementation
@visibleForTesting
static SearchPerson? fromJson(Map<String, dynamic>? jsonObject) {
if (jsonObject == null) return null;
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"] as List).cast<String>();
result._id = jsonObject["id"];
result.metadata = jsonObject["metadata"];
result._createdAt = DateTime.parse(jsonObject["createdAt"]);
return result;
}