copyWith method
EndpointSpec
copyWith({
- String? path,
- MeshagentEndpointSpec? meshagent,
- MCPEndpointSpec? mcp,
- Map<
String, String> ? annotations,
Implementation
EndpointSpec copyWith({String? path, MeshagentEndpointSpec? meshagent, MCPEndpointSpec? mcp, Map<String, String>? annotations}) {
return EndpointSpec(
path: path ?? this.path,
meshagent: mcp != null ? null : meshagent ?? this.meshagent,
mcp: meshagent != null ? null : mcp ?? this.mcp,
annotations: annotations ?? this.annotations,
);
}