copyWith method

NativeMCPToolConfigOutput copyWith({
  1. String? id,
  2. String? name,
  3. String? description,
  4. int? responseTimeoutSecs,
  5. String? type,
  6. dynamic parameters,
  7. String? mcpToolName,
  8. String? mcpServerId,
  9. MCPApprovalRequiredModel? approvalMode,
})

Implementation

NativeMCPToolConfigOutput copyWith(
    {String? id,
    String? name,
    String? description,
    int? responseTimeoutSecs,
    String? type,
    dynamic parameters,
    String? mcpToolName,
    String? mcpServerId,
    enums.MCPApprovalRequiredModel? approvalMode}) {
  return NativeMCPToolConfigOutput(
      id: id ?? this.id,
      name: name ?? this.name,
      description: description ?? this.description,
      responseTimeoutSecs: responseTimeoutSecs ?? this.responseTimeoutSecs,
      type: type ?? this.type,
      parameters: parameters ?? this.parameters,
      mcpToolName: mcpToolName ?? this.mcpToolName,
      mcpServerId: mcpServerId ?? this.mcpServerId,
      approvalMode: approvalMode ?? this.approvalMode);
}