fromJson static method
Allows you to deserialize object.
Implementation
static SignerInfo? fromJson(jsonObject) {
if (jsonObject == null) return null;
var result = SignerInfo();
result._version = jsonObject["version"];
result._paStatus = jsonObject["paStatus"];
result._dataToHash = jsonObject["dataToHash"];
result._digestAlgorithm = jsonObject["digestAlgorithm"];
result._signatureAlgorithm = jsonObject["signatureAlgorithm"];
result._serialNumber = RFIDValue.fromJson(jsonObject["serialNumber"]);
result._signature = RFIDValue.fromJson(jsonObject["signature"]);
result._subjectKeyIdentifier =
RFIDValue.fromJson(jsonObject["subjectKeyIdentifier"]);
result._issuer = Authority.fromJson(jsonObject["issuer"]);
result._notifications = jsonObject["notifications"].cast<int>();
for (var item in jsonObject["signedAttributes"]) {
result._signedAttributes.addSafe(Extension.fromJson(item));
}
for (var item in jsonObject["certificateChain"]) {
result._certificateChain.addSafe(CertificateChain.fromJson(item));
}
return result;
}