copyWith method

EndpointSpec copyWith({
  1. String? path,
  2. MeshagentEndpointSpec? meshagent,
  3. MCPEndpointSpec? mcp,
})

Implementation

EndpointSpec copyWith({String? path, MeshagentEndpointSpec? meshagent, MCPEndpointSpec? mcp}) {
  return EndpointSpec(
    path: path ?? this.path,
    meshagent: mcp != null ? null : meshagent ?? this.meshagent,
    mcp: meshagent != null ? null : mcp ?? this.mcp,
  );
}