copyWith method

Customer copyWith({
  1. String? id,
  2. String? syncToken,
  3. String? displayName,
  4. String? title,
  5. String? givenName,
  6. String? middleName,
  7. String? suffix,
  8. String? familyName,
  9. EmailAddress? primaryEmailAddr,
  10. String? resaleNum,
  11. String? secondaryTaxIdentifier,
  12. ReferenceType? aRAccountRef,
  13. ReferenceType? defaultTaxCodeRef,
  14. String? preferredDeliveryMethod,
  15. String? gSTIN,
  16. ReferenceType? salesTermRef,
  17. String? customerTypeRef,
  18. TelephoneNumber? fax,
  19. String? businessNumber,
  20. bool? billWithParent,
  21. CurrencyRefType? currencyRef,
  22. TelephoneNumber? mobile,
  23. bool? job,
  24. double? balanceWithJobs,
  25. TelephoneNumber? primaryPhone,
  26. String? openBalanceDate,
  27. bool? taxable,
  28. TelephoneNumber? alternatePhone,
  29. ModificationMetaData? metaData,
  30. ReferenceType? parentRef,
  31. String? notes,
  32. WebSiteAddress? webAddr,
  33. bool? active,
  34. String? companyName,
  35. double? balance,
  36. PhysicalAddress? shipAddr,
  37. ReferenceType? paymentMethodRef,
  38. bool? isProject,
  39. String? source,
  40. String? primaryTaxIdentifier,
  41. String? gSTRegistrationType,
  42. String? printOnCheckName,
  43. PhysicalAddress? billAddr,
  44. String? fullyQualifiedName,
  45. int? level,
  46. int? taxExemptionReasonId,
})

Implementation

Customer copyWith({
  String? id,
  String? syncToken,
  String? displayName,
  String? title,
  String? givenName,
  String? middleName,
  String? suffix,
  String? familyName,
  EmailAddress? primaryEmailAddr,
  String? resaleNum,
  String? secondaryTaxIdentifier,
  ReferenceType? aRAccountRef,
  ReferenceType? defaultTaxCodeRef,
  String? preferredDeliveryMethod,
  String? gSTIN,
  ReferenceType? salesTermRef,
  String? customerTypeRef,
  TelephoneNumber? fax,
  String? businessNumber,
  bool? billWithParent,
  CurrencyRefType? currencyRef,
  TelephoneNumber? mobile,
  bool? job,
  double? balanceWithJobs,
  TelephoneNumber? primaryPhone,
  String? openBalanceDate,
  bool? taxable,
  TelephoneNumber? alternatePhone,
  ModificationMetaData? metaData,
  ReferenceType? parentRef,
  String? notes,
  WebSiteAddress? webAddr,
  bool? active,
  String? companyName,
  double? balance,
  PhysicalAddress? shipAddr,
  ReferenceType? paymentMethodRef,
  bool? isProject,
  String? source,
  String? primaryTaxIdentifier,
  String? gSTRegistrationType,
  String? printOnCheckName,
  PhysicalAddress? billAddr,
  String? fullyQualifiedName,
  int? level,
  int? taxExemptionReasonId
}) {
  return Customer(
      id: id ?? this.id,
      syncToken: syncToken ?? this.syncToken,
      displayName: displayName ?? this.displayName,
      title: title ?? this.title,
      givenName: givenName ?? this.givenName,
      middleName: middleName ?? this.middleName,
      suffix: suffix ?? this.suffix,
      familyName: familyName ?? this.familyName,
      primaryEmailAddr: primaryEmailAddr ?? this.primaryEmailAddr,
      resaleNum: resaleNum ?? this.resaleNum,
      secondaryTaxIdentifier: secondaryTaxIdentifier ??
          this.secondaryTaxIdentifier,
      aRAccountRef: aRAccountRef ?? this.aRAccountRef,
      defaultTaxCodeRef: defaultTaxCodeRef ?? this.defaultTaxCodeRef,
      preferredDeliveryMethod: preferredDeliveryMethod ??
          this.preferredDeliveryMethod,
      gSTIN: gSTIN ?? this.gSTIN,
      salesTermRef: salesTermRef ?? this.salesTermRef,
      customerTypeRef: customerTypeRef ?? this.customerTypeRef,
      fax: fax ?? this.fax,
      businessNumber: businessNumber ?? this.businessNumber,
      billWithParent: billWithParent ?? this.billWithParent,
      currencyRef: currencyRef ?? this.currencyRef,
      mobile: mobile ?? this.mobile,
      job: job ?? this.job,
      balanceWithJobs: balanceWithJobs ?? this.balanceWithJobs,
      primaryPhone: primaryPhone ?? this.primaryPhone,
      openBalanceDate: openBalanceDate ?? this.openBalanceDate,
      taxable: taxable ?? this.taxable,
      alternatePhone: alternatePhone ?? this.alternatePhone,
      metaData: metaData ?? this.metaData,
      parentRef: parentRef ?? this.parentRef,
      notes: notes ?? this.notes,
      webAddr: webAddr ?? this.webAddr,
      active: active ?? this.active,
      companyName: companyName ?? this.companyName,
      balance: balance ?? this.balance,
      shipAddr: shipAddr ?? this.shipAddr,
      paymentMethodRef: paymentMethodRef ?? this.paymentMethodRef,
      isProject: isProject ?? this.isProject,
      source: source ?? this.source,
      primaryTaxIdentifier: primaryTaxIdentifier ?? this.primaryTaxIdentifier,
      gSTRegistrationType: gSTRegistrationType ?? this.gSTRegistrationType,
      printOnCheckName: printOnCheckName ?? this.printOnCheckName,
      billAddr: billAddr ?? this.billAddr,
      fullyQualifiedName: fullyQualifiedName ?? this.fullyQualifiedName,
      level: level ?? this.level,
      taxExemptionReasonId: taxExemptionReasonId ?? this.taxExemptionReasonId
  );
}