fromJson static method

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

Implementation

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

  result._type = jsonObject["type"] ?? "";
  result._value = jsonObject["value"] ?? "";

  return result;
}