decode method

void decode(
  1. KeyedArchive json
)

Implementation

void decode(KeyedArchive json) {
  super.decode(json);

  title = json.decode("title");
  description = json.decode("description");
  required = json.decode("required");
  example = json.decode("example");
  readOnly = json.decode("readOnly") ?? false;

  items = json.decodeObject("items", () => APISchemaObject());
  additionalProperties =
      json.decodeObject("additionalProperties", () => APISchemaObject());
  properties = json.decodeObjectMap("properties", () => APISchemaObject());
}