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