fromJson static method

  1. @visibleForTesting
PKDCertificate? fromJson(
  1. dynamic jsonObject
)

Implementation

@visibleForTesting
static PKDCertificate? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  return PKDCertificate(
    _dataFromBase64(jsonObject["binaryData"])!,
    PKDResourceType.getByValue(jsonObject["resourceType"])!,
    privateKey: _dataFromBase64(jsonObject["privateKey"]),
  );
}