copyWith method
Creates a copy with updated fields.
Implementation
KumihoCredentials copyWith({
String? apiKey,
String? email,
String? refreshToken,
String? idToken,
int? expiresAt,
String? projectId,
String? controlPlaneToken,
int? cpExpiresAt,
}) {
return KumihoCredentials(
apiKey: apiKey ?? this.apiKey,
email: email ?? this.email,
refreshToken: refreshToken ?? this.refreshToken,
idToken: idToken ?? this.idToken,
expiresAt: expiresAt ?? this.expiresAt,
projectId: projectId ?? this.projectId,
controlPlaneToken: controlPlaneToken ?? this.controlPlaneToken,
cpExpiresAt: cpExpiresAt ?? this.cpExpiresAt,
);
}