Discount class final
Constructors
-
Discount({required String id, required OfferProfile profile, required List<
Condition> conditions, required List<AppliesTo> appliesTo, required Benefit benefit, required bool active, required DateTime createdAt, String? reference, CustomData? customData, DateTime? updatedAt, DateTime? archivedAt}) -
const
-
Discount.fromJson(Map<
String, Object?> json) -
factory
Properties
- active → bool
-
final
-
appliesTo
→ List<
AppliesTo> -
final
- archivedAt → DateTime?
-
final
- benefit → Benefit
-
final
-
conditions
→ List<
Condition> -
final
- createdAt → DateTime
-
final
- customData → CustomData?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- profile → OfferProfile
-
final
- reference → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updatedAt → DateTime?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited