fromJson static method
Allows you to deserialize object.
Implementation
static CertificateChain? fromJson(jsonObject) {
if (jsonObject == null) return null;
var result = CertificateChain();
result._origin = jsonObject["origin"];
result._type = RFIDCertificateType.getByValue(jsonObject["type"])!;
result._version = jsonObject["version"];
result._paStatus = jsonObject["paStatus"];
result._serialNumber = jsonObject["serialNumber"];
result._signatureAlgorithm = jsonObject["signatureAlgorithm"];
result._subjectPKAlgorithm = jsonObject["subjectPKAlgorithm"];
result._fileName = RFIDValue.fromJson(jsonObject["fileName"]);
result._validity = RFIDValidity.fromJson(jsonObject["validity"]);
result._issuer = Authority.fromJson(jsonObject["issuer"]);
result._subject = Authority.fromJson(jsonObject["subject"]);
result._notifications = _intListFrom(jsonObject["notifications"])!;
for (var item in jsonObject["extensions"]) {
result._extensions.addSafe(Extension.fromJson(item));
}
return result;
}