copyWith method

QuickbooksCompanyInfo copyWith({
  1. String? id,
  2. String? companyName,
  3. String? legalName,
  4. QuickbooksPhysicalAddress? companyAddr,
  5. QuickbooksPhysicalAddress? customerCommunicationAddr,
  6. QuickbooksPhysicalAddress? legalAddr,
  7. QuickbooksEmailAddress? customerCommunicationEmailAddr,
  8. QuickbooksPhoneNumber? primaryPhone,
  9. DateTime? companyStartDate,
  10. String? fiscalYearStartMonth,
  11. String? country,
  12. QuickbooksEmailAddress? email,
  13. QuickbooksWebAddress? webAddr,
  14. String? supportedLanguages,
  15. List<QuickbooksReferenceType>? nameValue,
  16. String? domain,
  17. bool? sparse,
  18. String? syncToken,
  19. Map<String, dynamic>? metaData,
})

Implementation

QuickbooksCompanyInfo copyWith({
  String? id,
  String? companyName,
  String? legalName,
  QuickbooksPhysicalAddress? companyAddr,
  QuickbooksPhysicalAddress? customerCommunicationAddr,
  QuickbooksPhysicalAddress? legalAddr,
  QuickbooksEmailAddress? customerCommunicationEmailAddr,
  QuickbooksPhoneNumber? primaryPhone,
  DateTime? companyStartDate,
  String? fiscalYearStartMonth,
  String? country,
  QuickbooksEmailAddress? email,
  QuickbooksWebAddress? webAddr,
  String? supportedLanguages,
  List<QuickbooksReferenceType>? nameValue,
  String? domain,
  bool? sparse,
  String? syncToken,
  Map<String, dynamic>? metaData,
}) {
  return QuickbooksCompanyInfo(
    id: id ?? this.id,
    companyName: companyName ?? this.companyName,
    legalName: legalName ?? this.legalName,
    companyAddr: companyAddr ?? this.companyAddr,
    customerCommunicationAddr:
        customerCommunicationAddr ?? this.customerCommunicationAddr,
    legalAddr: legalAddr ?? this.legalAddr,
    customerCommunicationEmailAddr:
        customerCommunicationEmailAddr ?? this.customerCommunicationEmailAddr,
    primaryPhone: primaryPhone ?? this.primaryPhone,
    companyStartDate: companyStartDate ?? this.companyStartDate,
    fiscalYearStartMonth: fiscalYearStartMonth ?? this.fiscalYearStartMonth,
    country: country ?? this.country,
    email: email ?? this.email,
    webAddr: webAddr ?? this.webAddr,
    supportedLanguages: supportedLanguages ?? this.supportedLanguages,
    nameValue: nameValue ?? this.nameValue,
    domain: domain ?? this.domain,
    sparse: sparse ?? this.sparse,
    syncToken: syncToken ?? this.syncToken,
    metaData: metaData ?? this.metaData,
  );
}