UNPKG

@regulaforensics/document-reader

Version:

This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents using your phone's camera.

24 lines (19 loc) 525 B
export class TAChallenge { data auxPCD challengePICC hashPK idPICC constructor() { } static fromJson(jsonObject) { if (jsonObject == null) return null const result = new TAChallenge() result.data = jsonObject["data"] result.auxPCD = jsonObject["auxPCD"] ?? "" result.challengePICC = jsonObject["challengePICC"] ?? "" result.hashPK = jsonObject["hashPK"] ?? "" result.idPICC = jsonObject["idPICC"] ?? "" return result } }