copyWith method
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,
);
}