encode method

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

Implementation

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