AppCoupon class

Constructors

AppCoupon({String id = "", String code = "", double amount = 0, String ownerEmail = "", double ownerAmount = 1, String description = "", CouponType type = CouponType.oneMonthFree, int usageLimit = 100, List<String>? usedBy, List<String>? productIds, List<String>? excludedProductIds, List<String>? allowedEmails, List<String>? excludedEmails})
AppCoupon.fromJSON(dynamic data)

Properties

allowedEmails List<String>?
getter/setter pair
amount double
getter/setter pair
code String
getter/setter pair
description String
getter/setter pair
excludedEmails List<String>?
getter/setter pair
excludedProductIds List<String>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
ownerAmount double
getter/setter pair
ownerEmail String
getter/setter pair
productIds List<String>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type CouponType
getter/setter pair
usageLimit int
getter/setter pair
usedBy List<String>?
getter/setter pair

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