copyWithWrapped method
ShopifySharpCustomer
copyWithWrapped({
- Wrapped<
List< ? addresses,ShopifySharpAddress> ?> - Wrapped<
DateTime?> ? createdAt, - Wrapped<
String?> ? currency, - Wrapped<
ShopifySharpAddress?> ? defaultAddress, - Wrapped<
String?> ? email, - Wrapped<
String?> ? firstName, - Wrapped<
String?> ? multipassIdentifier, - Wrapped<
String?> ? lastName, - Wrapped<
int?> ? lastOrderId, - Wrapped<
String?> ? lastOrderName, - Wrapped<
String?> ? note, - Wrapped<
int?> ? ordersCount, - Wrapped<
String?> ? phone, - Wrapped<
String?> ? state, - Wrapped<
String?> ? tags, - Wrapped<
bool?> ? taxExempt, - Wrapped<
List< ? taxExemptions,String> ?> - Wrapped<
double?> ? totalSpent, - Wrapped<
DateTime?> ? updatedAt, - Wrapped<
bool?> ? verifiedEmail, - Wrapped<
ShopifySharpCustomerSmsMarketingConsent?> ? smsMarketingConsent, - Wrapped<
List< ? metafields,ShopifySharpMetaField> ?> - Wrapped<
ShopifySharpCustomerEmailMarketingConsent?> ? emailMarketingConsent, - Wrapped<
int?> ? id, - Wrapped<
String?> ? adminGraphqlApiId,
Implementation
ShopifySharpCustomer copyWithWrapped({
Wrapped<List<ShopifySharpAddress>?>? addresses,
Wrapped<DateTime?>? createdAt,
Wrapped<String?>? currency,
Wrapped<ShopifySharpAddress?>? defaultAddress,
Wrapped<String?>? email,
Wrapped<String?>? firstName,
Wrapped<String?>? multipassIdentifier,
Wrapped<String?>? lastName,
Wrapped<int?>? lastOrderId,
Wrapped<String?>? lastOrderName,
Wrapped<String?>? note,
Wrapped<int?>? ordersCount,
Wrapped<String?>? phone,
Wrapped<String?>? state,
Wrapped<String?>? tags,
Wrapped<bool?>? taxExempt,
Wrapped<List<String>?>? taxExemptions,
Wrapped<double?>? totalSpent,
Wrapped<DateTime?>? updatedAt,
Wrapped<bool?>? verifiedEmail,
Wrapped<ShopifySharpCustomerSmsMarketingConsent?>? smsMarketingConsent,
Wrapped<List<ShopifySharpMetaField>?>? metafields,
Wrapped<ShopifySharpCustomerEmailMarketingConsent?>? emailMarketingConsent,
Wrapped<int?>? id,
Wrapped<String?>? adminGraphqlApiId,
}) {
return ShopifySharpCustomer(
addresses: (addresses != null ? addresses.value : this.addresses),
createdAt: (createdAt != null ? createdAt.value : this.createdAt),
currency: (currency != null ? currency.value : this.currency),
defaultAddress: (defaultAddress != null
? defaultAddress.value
: this.defaultAddress),
email: (email != null ? email.value : this.email),
firstName: (firstName != null ? firstName.value : this.firstName),
multipassIdentifier: (multipassIdentifier != null
? multipassIdentifier.value
: this.multipassIdentifier),
lastName: (lastName != null ? lastName.value : this.lastName),
lastOrderId: (lastOrderId != null ? lastOrderId.value : this.lastOrderId),
lastOrderName: (lastOrderName != null
? lastOrderName.value
: this.lastOrderName),
note: (note != null ? note.value : this.note),
ordersCount: (ordersCount != null ? ordersCount.value : this.ordersCount),
phone: (phone != null ? phone.value : this.phone),
state: (state != null ? state.value : this.state),
tags: (tags != null ? tags.value : this.tags),
taxExempt: (taxExempt != null ? taxExempt.value : this.taxExempt),
taxExemptions: (taxExemptions != null
? taxExemptions.value
: this.taxExemptions),
totalSpent: (totalSpent != null ? totalSpent.value : this.totalSpent),
updatedAt: (updatedAt != null ? updatedAt.value : this.updatedAt),
verifiedEmail: (verifiedEmail != null
? verifiedEmail.value
: this.verifiedEmail),
smsMarketingConsent: (smsMarketingConsent != null
? smsMarketingConsent.value
: this.smsMarketingConsent),
metafields: (metafields != null ? metafields.value : this.metafields),
emailMarketingConsent: (emailMarketingConsent != null
? emailMarketingConsent.value
: this.emailMarketingConsent),
id: (id != null ? id.value : this.id),
adminGraphqlApiId: (adminGraphqlApiId != null
? adminGraphqlApiId.value
: this.adminGraphqlApiId),
);
}