CampaignDTO constructor
CampaignDTO({
- String? id,
- String? createdAt,
- String? updatedAt,
- bool? isActive,
- bool? isDeleted,
- String? title,
- int? highlightRate,
- String? slug,
- String? link,
- String? description,
- String? discountStartDate,
- String? discountEndDate,
- int? limit,
- int? used,
- bool? showOnMain,
- String? type,
- String? priceType,
- int? productCount,
- int? freeProductCount,
- List<
ProductDTO> ? products, - List<
CategoryDTO> ? categories, - List<
BrandDTO> ? brands, - List<
TagDTO> ? tags, - PhotoDTO? photo,
Implementation
CampaignDTO(
{super.id,
super.createdAt,
super.updatedAt,
super.isActive,
super.isDeleted,
this.title,
this.highlightRate,
this.slug,
this.link,
this.description,
this.discountStartDate,
this.discountEndDate,
this.limit,
this.used,
this.showOnMain,
this.type,
this.priceType,
this.productCount,
this.freeProductCount,
this.products,
this.categories,
this.brands,
this.tags,
this.photo});