copyWith method

ShopifySharpCustomerEmailMarketingConsent copyWith({
  1. String? state,
  2. String? optInLevel,
  3. DateTime? consentUpdatedAt,
})

Implementation

ShopifySharpCustomerEmailMarketingConsent copyWith({
  String? state,
  String? optInLevel,
  DateTime? consentUpdatedAt,
}) {
  return ShopifySharpCustomerEmailMarketingConsent(
    state: state ?? this.state,
    optInLevel: optInLevel ?? this.optInLevel,
    consentUpdatedAt: consentUpdatedAt ?? this.consentUpdatedAt,
  );
}