copyWith method
Implementation
SignUpPayload copyWith({
String? firstName,
String? lastName,
String? emailAddress,
String? phoneNumber,
bool? isTermsConditionsAgreed,
String? deviceModel,
String? deviceModelNo,
String? deviceId,
String? pushNotificationToken,
}) {
return SignUpPayload(
firstName: firstName ?? this.firstName,
lastName: lastName ?? this.lastName,
emailAddress: emailAddress ?? this.emailAddress,
phoneNumber: phoneNumber ?? this.phoneNumber,
isTermsConditionsAgreed:
isTermsConditionsAgreed ?? this.isTermsConditionsAgreed,
deviceModel: deviceModel ?? this.deviceModel,
deviceModelNo: deviceModelNo ?? this.deviceModelNo,
deviceId: deviceId ?? this.deviceId,
pushNotificationToken:
pushNotificationToken ?? this.pushNotificationToken,
);
}