copyWith method

UpdateProjectApiKeyRequest copyWith({
  1. Object? expiresInSeconds = unsetCopyWithValue,
  2. Object? scopes = unsetCopyWithValue,
  3. Map<String, dynamic>? rawJson,
})

Copies every field; clear flags omit optional nullable members.

Implementation

UpdateProjectApiKeyRequest copyWith({
  Object? expiresInSeconds = unsetCopyWithValue,
  Object? scopes = unsetCopyWithValue,
  Map<String, dynamic>? rawJson,
}) => UpdateProjectApiKeyRequest(
  expiresInSeconds: adminCopy<int>(
    expiresInSeconds,
    this.expiresInSeconds,
    'UpdateProjectApiKeyRequest.expiresInSeconds',
  ),
  scopes: adminCopyList<String>(
    scopes,
    this.scopes,
    'UpdateProjectApiKeyRequest.scopes',
  ),
  rawJson: rawJson ?? this.rawJson,
);