copyWith method

MCPEndpointSpec copyWith({
  1. String? label,
  2. String? description,
  3. List<AllowedMcpToolFilter>? allowedTools,
  4. Map<String, String>? headers,
  5. String? requireApproval,
  6. OAuthClientConfig? oauth,
  7. 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,
  );
}