decode method

void decode(
  1. KeyedArchive object
)
override

Implementation

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

  schemas = object.decodeObjectMap("schemas", () => APISchemaObject())!;
  responses = object.decodeObjectMap("responses", () => APIResponse.empty());
  parameters =
      object.decodeObjectMap("parameters", () => APIParameter.empty());
//    examples = object.decodeObjectMap("examples", () => APIExample());
  requestBodies =
      object.decodeObjectMap("requestBodies", () => APIRequestBody.empty());
  headers = object.decodeObjectMap("headers", () => APIHeader());

  securitySchemes =
      object.decodeObjectMap("securitySchemes", () => APISecurityScheme());
//    links = object.decodeObjectMap("links", () => APILink());
  callbacks = object.decodeObjectMap("callbacks", () => APICallback());
}