fromJson static method
- dynamic jsonObject
Implementation
@visibleForTesting
static PKDCertificate? fromJson(jsonObject) {
if (jsonObject == null) return null;
var result = new PKDCertificate._empty();
result._binaryData = base64Decode(jsonObject["binaryData"]);
result._resourceType =
PKDResourceType.getByValue(jsonObject["resourceType"])!;
result._privateKey = base64Decode(jsonObject["privateKey"]);
return result;
}