UNPKG

@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) 574 B
export class PageableItemList { items page totalPages static fromJson(jsonObject, fromJSON) { if (jsonObject == null) return null var result = new PageableItemList() if (jsonObject["items"] != null) { result.items = [] for (var item of jsonObject["items"]) { var temp = fromJSON(item) if (temp != null) result.items.push(temp) } } result.page = jsonObject["page"] result.totalPages = jsonObject["totalPages"] return result } }