copyWith method
UserResponseModel
copyWith({
- String? userId,
- SubscriptionResponseModel? subscription,
- dynamic subscriptionExtras,
- bool? isNewUser,
- dynamic xiApiKey,
- bool? canUseDelayedPaymentMethods,
- bool? isOnboardingCompleted,
- bool? isOnboardingChecklistCompleted,
- dynamic firstName,
- bool? isApiKeyHashed,
- dynamic xiApiKeyPreview,
- dynamic referralLinkCode,
- dynamic partnerstackPartnerDefaultLink,
Implementation
UserResponseModel copyWith(
{String? userId,
SubscriptionResponseModel? subscription,
dynamic subscriptionExtras,
bool? isNewUser,
dynamic xiApiKey,
bool? canUseDelayedPaymentMethods,
bool? isOnboardingCompleted,
bool? isOnboardingChecklistCompleted,
dynamic firstName,
bool? isApiKeyHashed,
dynamic xiApiKeyPreview,
dynamic referralLinkCode,
dynamic partnerstackPartnerDefaultLink}) {
return UserResponseModel(
userId: userId ?? this.userId,
subscription: subscription ?? this.subscription,
subscriptionExtras: subscriptionExtras ?? this.subscriptionExtras,
isNewUser: isNewUser ?? this.isNewUser,
xiApiKey: xiApiKey ?? this.xiApiKey,
canUseDelayedPaymentMethods:
canUseDelayedPaymentMethods ?? this.canUseDelayedPaymentMethods,
isOnboardingCompleted:
isOnboardingCompleted ?? this.isOnboardingCompleted,
isOnboardingChecklistCompleted: isOnboardingChecklistCompleted ??
this.isOnboardingChecklistCompleted,
firstName: firstName ?? this.firstName,
isApiKeyHashed: isApiKeyHashed ?? this.isApiKeyHashed,
xiApiKeyPreview: xiApiKeyPreview ?? this.xiApiKeyPreview,
referralLinkCode: referralLinkCode ?? this.referralLinkCode,
partnerstackPartnerDefaultLink: partnerstackPartnerDefaultLink ??
this.partnerstackPartnerDefaultLink);
}