decode method
void
decode(
- KeyedArchive object
)
override
Implementation
@override
void decode(KeyedArchive object) {
super.decode(object);
schemas = removeNullsFromMap(
object.decodeObjectMap("schemas", () => APISchemaObject()),
);
responses = removeNullsFromMap(
object.decodeObjectMap("responses", () => APIResponse.empty()),
);
parameters = removeNullsFromMap(
object.decodeObjectMap("parameters", () => APIParameter.empty()),
);
// examples = object.decodeObjectMap("examples", () => APIExample());
requestBodies = removeNullsFromMap(
object.decodeObjectMap("requestBodies", () => APIRequestBody.empty()),
);
headers = removeNullsFromMap(
object.decodeObjectMap("headers", () => APIHeader()),
);
securitySchemes = removeNullsFromMap(
object.decodeObjectMap("securitySchemes", () => APISecurityScheme()),
);
// links = object.decodeObjectMap("links", () => APILink());
callbacks = removeNullsFromMap(
object.decodeObjectMap("callbacks", () => APICallback()),
);
}