copyWith method

Agent copyWith({
  1. String? id,
  2. String? name,
  3. String? description,
  4. String? type,
  5. bool? isActive,
  6. bool? isDeployed,
  7. bool? is_published,
  8. bool? is_featured,
  9. AgentConfigs? agentConfigs,
})

Implementation

Agent copyWith({
  String? id,
  String? name,
  String? description,
  String? type,
  bool? isActive,
  bool? isDeployed,
  bool? is_published,
  bool? is_featured,
  AgentConfigs? agentConfigs,
}) {
  return Agent(
    id: id ?? this.id,
    name: name ?? this.name,
    description: description ?? this.description,
    type: type ?? this.type,
    isActive: isActive ?? this.isActive,
    isDeployed: isDeployed ?? this.isDeployed,
    is_published: is_published ?? this.is_published,
    is_featured: is_featured ?? this.is_featured,
    agentConfigs: agentConfigs ?? this.agentConfigs,
  );
}