copyWith method

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

Implementation

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