Coupon class final
Constructors
-
Coupon({required String id, required String code, required OfferProfile profile, required bool active, required List<
Benefit> benefits, required PromoDefaults promoDefaults, required DateTime createdAt, String? reference, CustomData? customData, DateTime? updatedAt, DateTime? archivedAt}) -
const
-
Coupon.fromJson(Map<
String, Object?> json) -
factory
Properties
- active → bool
-
final
- archivedAt → DateTime?
-
final
-
benefits
→ List<
Benefit> -
final
- code → String
-
final
- createdAt → DateTime
-
final
- customData → CustomData?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- profile → OfferProfile
-
final
- promoDefaults → PromoDefaults
-
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