Coupon class

Implementers
Annotations
  • @JsonSerializable()

Constructors

Coupon({required String id, required String name, required String description, int? discountAmount, int? discountPercentage, required DateTime startsAt, required DateTime endsAt, required DateTime displayStartsAt, required DateTime displayEndsAt, int? usageLimit, int? minAmount, required bool isShopSpecified, required bool isDisabled, required bool isHidden, String? couponImage})
Coupon.fromJson(Map<String, dynamic> json)
factory

Properties

couponImage String?
final
description String
final
discountAmount int?
final
discountPercentage int?
final
displayEndsAt DateTime
final
displayStartsAt DateTime
final
endsAt DateTime
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
isDisabled bool
final
isHidden bool
final
isShopSpecified bool
final
minAmount int?
final
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startsAt DateTime
final
usageLimit int?
final

Methods

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

Operators

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