decode method

void decode(
  1. KeyedArchive object
)
override

Implementation

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

  object.keys.forEach((k) {
    if (k == r"$ref") {
      // todo: reference
    } else if (k == "parameters") {
      parameters = object.decodeObjects(k, () => APIParameter())!;
    } else {
      operations[k] = object.decodeObject(k, () => APIOperation());
    }
  });
}