copyWithWrapped method

MCPToolConfigOutput copyWithWrapped({
  1. Wrapped<String?>? id,
  2. Wrapped<String>? name,
  3. Wrapped<String>? description,
  4. Wrapped<int?>? responseTimeoutSecs,
  5. Wrapped<String?>? type,
  6. Wrapped? parameters,
  7. Wrapped<String>? mcpToolName,
  8. Wrapped<String>? mcpServerId,
  9. Wrapped<MCPApprovalRequiredModel?>? approvalMode,
})

Implementation

MCPToolConfigOutput copyWithWrapped(
    {Wrapped<String?>? id,
    Wrapped<String>? name,
    Wrapped<String>? description,
    Wrapped<int?>? responseTimeoutSecs,
    Wrapped<String?>? type,
    Wrapped<dynamic>? parameters,
    Wrapped<String>? mcpToolName,
    Wrapped<String>? mcpServerId,
    Wrapped<enums.MCPApprovalRequiredModel?>? approvalMode}) {
  return MCPToolConfigOutput(
      id: (id != null ? id.value : this.id),
      name: (name != null ? name.value : this.name),
      description:
          (description != null ? description.value : this.description),
      responseTimeoutSecs: (responseTimeoutSecs != null
          ? responseTimeoutSecs.value
          : this.responseTimeoutSecs),
      type: (type != null ? type.value : this.type),
      parameters: (parameters != null ? parameters.value : this.parameters),
      mcpToolName:
          (mcpToolName != null ? mcpToolName.value : this.mcpToolName),
      mcpServerId:
          (mcpServerId != null ? mcpServerId.value : this.mcpServerId),
      approvalMode:
          (approvalMode != null ? approvalMode.value : this.approvalMode));
}