decode method

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

Implementation

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

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