copyWith method

MarketProduct copyWith({
  1. int? id,
  2. String? reference,
  3. String? pictureUrl,
  4. int? categoryId,
  5. int? purchaseType,
  6. dynamic warrantyDuration,
  7. int? planDuration,
  8. int? workDuration,
  9. int? numberOfItems,
  10. String? label,
  11. String? languageCode,
  12. String? subtitleLabel,
  13. dynamic description,
  14. dynamic jsonDescription,
  15. dynamic countryCode,
  16. dynamic price,
  17. dynamic priceFormat,
  18. int? priceMonthly,
  19. String? priceMonthlyFormat,
  20. int? priceYearly,
  21. String? priceYearlyFormat,
  22. String? priceByAdIfMonthlyFormat,
  23. String? priceByAdIfYearlyFormat,
  24. double? pricePercentageDiscountIfYearly,
  25. String? currency,
  26. int? currentDiscountActive,
  27. dynamic currentDiscountInPercent,
  28. int? discountBetweenYearAndMonth,
  29. dynamic convertedPricing,
})

Implementation

MarketProduct copyWith({
  int? id,
  String? reference,
  String? pictureUrl,
  int? categoryId,
  int? purchaseType,
  dynamic warrantyDuration,
  int? planDuration,
  int? workDuration,
  int? numberOfItems,
  String? label,
  String? languageCode,
  String? subtitleLabel,
  dynamic description,
  dynamic jsonDescription,
  dynamic countryCode,
  dynamic price,
  dynamic priceFormat,
  int? priceMonthly,
  String? priceMonthlyFormat,
  int? priceYearly,
  String? priceYearlyFormat,
  String? priceByAdIfMonthlyFormat,
  String? priceByAdIfYearlyFormat,
  double? pricePercentageDiscountIfYearly,
  String? currency,
  int? currentDiscountActive,
  dynamic currentDiscountInPercent,
  int? discountBetweenYearAndMonth,
  dynamic convertedPricing,
}) =>
    MarketProduct(
      id: id ?? this.id,
      reference: reference ?? this.reference,
      pictureUrl: pictureUrl ?? this.pictureUrl,
      categoryId: categoryId ?? this.categoryId,
      purchaseType: purchaseType ?? this.purchaseType,
      warrantyDuration: warrantyDuration ?? this.warrantyDuration,
      planDuration: planDuration ?? this.planDuration,
      workDuration: workDuration ?? this.workDuration,
      numberOfItems: numberOfItems ?? this.numberOfItems,
      label: label ?? this.label,
      languageCode: languageCode ?? this.languageCode,
      subtitleLabel: subtitleLabel ?? this.subtitleLabel,
      description: description ?? this.description,
      jsonDescription: jsonDescription ?? this.jsonDescription,
      countryCode: countryCode ?? this.countryCode,
      price: price ?? this.price,
      priceFormat: priceFormat ?? this.priceFormat,
      priceMonthly: priceMonthly ?? this.priceMonthly,
      priceMonthlyFormat: priceMonthlyFormat ?? this.priceMonthlyFormat,
      priceYearly: priceYearly ?? this.priceYearly,
      priceYearlyFormat: priceYearlyFormat ?? this.priceYearlyFormat,
      priceByAdIfMonthlyFormat:
          priceByAdIfMonthlyFormat ?? this.priceByAdIfMonthlyFormat,
      priceByAdIfYearlyFormat:
          priceByAdIfYearlyFormat ?? this.priceByAdIfYearlyFormat,
      pricePercentageDiscountIfYearly: pricePercentageDiscountIfYearly ??
          this.pricePercentageDiscountIfYearly,
      currency: currency ?? this.currency,
      currentDiscountActive:
          currentDiscountActive ?? this.currentDiscountActive,
      currentDiscountInPercent:
          currentDiscountInPercent ?? this.currentDiscountInPercent,
      discountBetweenYearAndMonth:
          discountBetweenYearAndMonth ?? this.discountBetweenYearAndMonth,
      convertedPricing: convertedPricing ?? this.convertedPricing,
    );