decode method

  1. @override
void decode(
  1. KeyedArchive json
)

Implementation

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

  title = json.decode("title");
  description = json.decode("description");
  isRequired = 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());
}