copyWithWrapped method

ShopifySharpCustomer copyWithWrapped({
  1. Wrapped<List<ShopifySharpAddress>?>? addresses,
  2. Wrapped<DateTime?>? createdAt,
  3. Wrapped<String?>? currency,
  4. Wrapped<ShopifySharpAddress?>? defaultAddress,
  5. Wrapped<String?>? email,
  6. Wrapped<String?>? firstName,
  7. Wrapped<String?>? multipassIdentifier,
  8. Wrapped<String?>? lastName,
  9. Wrapped<int?>? lastOrderId,
  10. Wrapped<String?>? lastOrderName,
  11. Wrapped<String?>? note,
  12. Wrapped<int?>? ordersCount,
  13. Wrapped<String?>? phone,
  14. Wrapped<String?>? state,
  15. Wrapped<String?>? tags,
  16. Wrapped<bool?>? taxExempt,
  17. Wrapped<List<String>?>? taxExemptions,
  18. Wrapped<double?>? totalSpent,
  19. Wrapped<DateTime?>? updatedAt,
  20. Wrapped<bool?>? verifiedEmail,
  21. Wrapped<ShopifySharpCustomerSmsMarketingConsent?>? smsMarketingConsent,
  22. Wrapped<List<ShopifySharpMetaField>?>? metafields,
  23. Wrapped<ShopifySharpCustomerEmailMarketingConsent?>? emailMarketingConsent,
  24. Wrapped<int?>? id,
  25. 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),
  );
}