fromJson static method

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

Implementation

@visibleForTesting
static TccParams? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = TccParams();

  result.serviceUrlTA = jsonObject["serviceUrlTA"];
  result.serviceUrlPA = jsonObject["serviceUrlPA"];
  result.pfxCertUrl = jsonObject["pfxCertUrl"];
  result.pfxPassPhrase = jsonObject["pfxPassPhrase"];
  result.pfxCert = _dataFromBase64(jsonObject["pfxCert"]);

  return result;
}