fromJson static method

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

Implementation

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

  result._data = _bytesFromBase64(jsonObject["data"])!;
  result._friendlyName = jsonObject["friendlyName"];
  for (var item in jsonObject["attributes"]) {
    result._attributes.addSafe(PAAttribute.fromJson(item));
  }
  return result;
}