CampaignDTO class

Inheritance

Constructors

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})
CampaignDTO.fromJson(Map<String, dynamic> json)

Properties

brands List<BrandDTO>?
getter/setter pair
categories List<CategoryDTO>?
getter/setter pair
createdAt String?
The time when the DTO was created.
getter/setter pairinherited
description String?
getter/setter pair
discountEndDate String?
getter/setter pair
discountStartDate String?
getter/setter pair
freeProductCount int?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
highlightRate int?
getter/setter pair
id String?
The ID of the DTO.
getter/setter pairinherited
isActive bool?
Whether the DTO is active.
getter/setter pairinherited
isDeleted bool?
Whether the DTO has been deleted.
getter/setter pairinherited
limit int?
getter/setter pair
getter/setter pair
photo PhotoDTO?
getter/setter pair
priceType String?
getter/setter pair
productCount int?
getter/setter pair
products List<ProductDTO>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showOnMain bool?
getter/setter pair
slug String?
getter/setter pair
tags List<TagDTO>?
getter/setter pair
title String?
getter/setter pair
type String?
getter/setter pair
updatedAt String?
The time when the DTO was last updated.
getter/setter pairinherited
used int?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the BaseDTO to a JSON object.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited