copyWith method

OpenApi copyWith({
  1. InfoOpenApi? info,
  2. List<ServerOpenApi>? servers,
})

Implementation

OpenApi copyWith({InfoOpenApi? info, List<ServerOpenApi>? servers}) {
  return OpenApi(
    openapi: openapi,
    info: info ?? this.info,
    servers: servers ?? this.servers,
    paths: paths,
    components: components,
    tags: tags,
  );
}