decode method
Implementation
void decode(KeyedArchive object) {
super.decode(object);
version = object["swagger"];
host = object["host"];
basePath = object["basePath"];
schemes = object["schemes"];
consumes = object["consumes"];
produces = object["produces"];
security = object["security"];
info = object.decodeObject("info", () => APIInfo());
tags = object.decodeObjects("tags", () => APITag());
paths = object.decodeObjectMap("paths", () => APIPath());
responses = object.decodeObjectMap("responses", () => APIResponse());
parameters = object.decodeObjectMap("parameters", () => APIParameter());
definitions =
object.decodeObjectMap("definitions", () => APISchemaObject());
securityDefinitions = object.decodeObjectMap(
"securityDefinitions", () => APISecurityScheme());
}