@regulaforensics/face-sdk
Version:
This is an npm module for Regula Face SDK. It allows you to easily compaire faces using your phone's camera.
23 lines (19 loc) • 526 B
JavaScript
export class PersonImage {
path
url
contentType
id
metadata
createdAt
static fromJson(jsonObject) {
if (jsonObject == null) return null
var result = new PersonImage()
result.path = jsonObject["path"]
result.url = jsonObject["url"]
result.contentType = jsonObject["contentType"]
result.id = jsonObject["id"]
result.metadata = jsonObject["metadata"]
result.createdAt = new Date(jsonObject["createdAt"])
return result
}
}