copyWithWrapped method

ShopifySharpCustomerEmailMarketingConsent copyWithWrapped({
  1. Wrapped<String?>? state,
  2. Wrapped<String?>? optInLevel,
  3. Wrapped<DateTime?>? consentUpdatedAt,
})

Implementation

ShopifySharpCustomerEmailMarketingConsent copyWithWrapped({
  Wrapped<String?>? state,
  Wrapped<String?>? optInLevel,
  Wrapped<DateTime?>? consentUpdatedAt,
}) {
  return ShopifySharpCustomerEmailMarketingConsent(
    state: (state != null ? state.value : this.state),
    optInLevel: (optInLevel != null ? optInLevel.value : this.optInLevel),
    consentUpdatedAt: (consentUpdatedAt != null
        ? consentUpdatedAt.value
        : this.consentUpdatedAt),
  );
}