decode method

void decode(
  1. KeyedArchive object
)
override

Implementation

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

  version = object.decode("openapi");
  info = object.decodeObject("info", () => APIInfo.empty())!;
  servers =
      object.decodeObjects("servers", () => APIServerDescription.empty());
  paths = object.decodeObjectMap("paths", () => APIPath());
  components = object.decodeObject("components", () => APIComponents());
  security =
      object.decodeObjects("security", () => APISecurityRequirement.empty());
  tags = object.decodeObjects("tags", () => APITag.empty());
}