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