copyWith method
MCPEndpointSpec
copyWith({
- String? label,
- String? description,
- List<
AllowedMcpToolFilter> ? allowedTools, - Map<
String, String> ? headers, - String? requireApproval,
- OAuthClientConfig? oauth,
- String? openaiConnectorId,
Implementation
MCPEndpointSpec copyWith({
String? label,
String? description,
List<AllowedMcpToolFilter>? allowedTools,
Map<String, String>? headers,
String? requireApproval,
OAuthClientConfig? oauth,
String? openaiConnectorId,
}) {
return MCPEndpointSpec(
label: label ?? this.label,
description: description ?? this.description,
allowedTools: allowedTools ?? this.allowedTools,
headers: headers ?? this.headers,
requireApproval: requireApproval ?? this.requireApproval,
oauth: oauth ?? this.oauth,
openaiConnectorId: openaiConnectorId ?? this.openaiConnectorId,
);
}