encode method

void encode(
  1. KeyedArchive json
)

Implementation

void encode(KeyedArchive json) {
  super.encode(json);
  json.encode("description", description);
  if (type == APIType.array) {
    json.encodeObject("items", items);
  }
}