fromJson static method

Authority? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.data = jsonObject["data"];
  result.friendlyName = Value.fromJson(jsonObject["friendlyName"]);
  if (jsonObject["attributes"] != null)
    for (var item in jsonObject["attributes"])
      result.attributes.add(Attribute.fromJson(item));

  return result;
}