copyWith method

SignUpPayload copyWith({
  1. String? firstName,
  2. String? lastName,
  3. String? emailAddress,
  4. String? phoneNumber,
  5. bool? isTermsConditionsAgreed,
  6. String? deviceModel,
  7. String? deviceModelNo,
  8. String? deviceId,
  9. String? pushNotificationToken,
})

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,
  );
}