copyWithWrapped method
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),
);
}