@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 (18 loc) • 484 B
JavaScript
import { RFIDValue } from './RFIDValue';
export class Attribute {
type
value
static fromJson(jsonObject) {
if (jsonObject == null) return null;
const result = new Attribute();
result.type = jsonObject["type"];
result.value = RFIDValue.fromJson(jsonObject["value"]);
return result;
}
toJson() {
return {
"type": this.type,
"value": this.value?.toJson(),
}
}
}