copyWith method

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

Implementation

McpServerSseVariant copyWith({
  Object? type = _acpCopyWithAbsent,
  Object? name = _acpCopyWithAbsent,
  Object? url = _acpCopyWithAbsent,
  Object? headers = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => McpServerSseVariant(
  type: identical(type, _acpCopyWithAbsent) ? this.type : type as String,
  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?,
);