Promotion class final

Constructors

Promotion({required String id, required TargetType type, required OfferProfile profile, required Schedule schedule, required Activation activation, required int priority, required Status status, required DateTime createdAt, TargetReference? coupon, TargetReference? discount, CustomData? customData, DateTime? updatedAt, DateTime? firstActivatedAt, DateTime? activatedAt, DateTime? deactivatedAt, List<ScheduleAdjustment>? scheduleAdjustments, DateTime? archivedAt})
const
Promotion.fromJson(Map<String, Object?> json)
factory

Properties

activatedAt → DateTime?
final
activation → Activation
final
archivedAt → DateTime?
final
coupon → TargetReference?
final
createdAt → DateTime
final
customData → CustomData?
final
deactivatedAt → DateTime?
final
discount → TargetReference?
final
firstActivatedAt → DateTime?
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
priority → int
final
profile → OfferProfile
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schedule → Schedule
final
scheduleAdjustments → List<ScheduleAdjustment>?
final
status → Status
final
type → TargetType
final
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