decode method

void decode(
  1. KeyedArchive object
)
override

Implementation

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

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