copyWith method

ListSessionsResponse copyWith({
  1. Object? sessions = _acpCopyWithAbsent,
  2. Object? nextCursor = _acpCopyWithAbsent,
  3. Object? meta = _acpCopyWithAbsent,
})

Implementation

ListSessionsResponse copyWith({
  Object? sessions = _acpCopyWithAbsent,
  Object? nextCursor = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => ListSessionsResponse(
  sessions: identical(sessions, _acpCopyWithAbsent)
      ? this.sessions
      : sessions as List<SessionInfo>,
  nextCursor: identical(nextCursor, _acpCopyWithAbsent)
      ? this.nextCursor
      : nextCursor as String?,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);