copyWith method

McpServerSse copyWith({
  1. Object? name = _acpCopyWithAbsent,
  2. Object? url = _acpCopyWithAbsent,
  3. Object? headers = _acpCopyWithAbsent,
  4. Object? meta = _acpCopyWithAbsent,
})

Implementation

McpServerSse copyWith({
  Object? name = _acpCopyWithAbsent,
  Object? url = _acpCopyWithAbsent,
  Object? headers = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => McpServerSse(
  name: identical(name, _acpCopyWithAbsent) ? this.name : name as String,
  url: identical(url, _acpCopyWithAbsent) ? this.url : url as String,
  headers: identical(headers, _acpCopyWithAbsent)
      ? this.headers
      : headers as List<HttpHeader>,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);