fromJson static method

Attribute? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.type = jsonObject["type"];
  result.value = Value.fromJson(jsonObject["value"]);

  return result;
}