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