DailyDeal class
DailyDeals description
- Inheritance
-
- Object
- WorldstateObject
- DailyDeal
- Annotations
-
- @JsonSerializable.new()
Constructors
- DailyDeal({required String id, required DateTime activation, required DateTime expiry, required String item, required String uniqueName, required int originalPrice, required int salePrice, required int total, required int sold, required int discount})
-
DailyDeals description
const
-
DailyDeal.fromJson(Map<
String, dynamic> json) -
Creates a DailyDeals from Json map
factory
Properties
- activation → DateTime
-
The time the state was activated.
no setteroverride
- active → bool
-
Whether or not the object was active after it was created.
no setterinherited
- discount → int
-
The discount applied to the item.
final
- expiry → DateTime
-
The time the state will expire.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
ID of the instance.
no setteroverride
- item → String
-
The item on sale.
final
- originalPrice → int
-
The original price the item is usually sold for.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
- remaining → Duration?
-
The remaining time until the state expires.
no setterinherited
- remainingStock → int
-
Items left in stock.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- salePrice → int
-
The sale price for the item.
final
- sold → int
-
Number of items already sold.
final
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited - total → int
-
The total stock of items on sale.
final
- uniqueName → String
-
Unique name of item being sold.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Creates a Json map from a DailyDeals
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited