copyWith method

RealtimeTranslationClientSecretCreateRequest copyWith({
  1. RealtimeTranslationSessionCreateRequest? session,
  2. Object? expiresAfter = unsetCopyWithValue,
})

Returns a copy with the given fields replaced.

Pass null for expiresAfter to clear the existing value.

Implementation

RealtimeTranslationClientSecretCreateRequest copyWith({
  RealtimeTranslationSessionCreateRequest? session,
  Object? expiresAfter = unsetCopyWithValue,
}) => RealtimeTranslationClientSecretCreateRequest(
  session: session ?? this.session,
  expiresAfter: identical(expiresAfter, unsetCopyWithValue)
      ? this.expiresAfter
      : expiresAfter as ExpiresAfter?,
);