copyWith method

RequestPermissionRequest copyWith({
  1. Object? sessionId = _acpCopyWithAbsent,
  2. Object? toolCall = _acpCopyWithAbsent,
  3. Object? options = _acpCopyWithAbsent,
  4. Object? meta = _acpCopyWithAbsent,
})

Implementation

RequestPermissionRequest copyWith({
  Object? sessionId = _acpCopyWithAbsent,
  Object? toolCall = _acpCopyWithAbsent,
  Object? options = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => RequestPermissionRequest(
  sessionId: identical(sessionId, _acpCopyWithAbsent)
      ? this.sessionId
      : sessionId as SessionId,
  toolCall: identical(toolCall, _acpCopyWithAbsent)
      ? this.toolCall
      : toolCall as ToolCallUpdate,
  options: identical(options, _acpCopyWithAbsent)
      ? this.options
      : options as List<PermissionOption>,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);