@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.
30 lines (24 loc) • 660 B
JavaScript
import { dateToString } from '../internal/bridge'
export class PersonGroup {
name
id
metadata
createdAt
static fromJson(jsonObject) {
if (jsonObject == null) return null
var result = new PersonGroup()
result.name = jsonObject["name"]
result.id = jsonObject["id"]
result.metadata = jsonObject["metadata"]
result.createdAt = new Date(jsonObject["createdAt"])
return result
}
toJson() {
return {
"name": this.name,
"id": this.id,
"metadata": this.metadata,
"createdAt": dateToString(this.createdAt),
}
}
}