copyWith method

NewSessionResponse copyWith({
  1. Object? sessionId = _acpCopyWithAbsent,
  2. Object? modes = _acpCopyWithAbsent,
  3. Object? configOptions = _acpCopyWithAbsent,
  4. Object? meta = _acpCopyWithAbsent,
})

Implementation

NewSessionResponse copyWith({
  Object? sessionId = _acpCopyWithAbsent,
  Object? modes = _acpCopyWithAbsent,
  Object? configOptions = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => NewSessionResponse(
  sessionId: identical(sessionId, _acpCopyWithAbsent)
      ? this.sessionId
      : sessionId as SessionId,
  modes: identical(modes, _acpCopyWithAbsent)
      ? this.modes
      : modes as SessionModeState?,
  configOptions: identical(configOptions, _acpCopyWithAbsent)
      ? this.configOptions
      : configOptions as List<SessionConfigOption>?,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);