copyWithWrapped method

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

Implementation

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