fromJson static method

Authority? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

static Authority? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = Authority();

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

  return result;
}