AdminPostDiscountsDiscountDynamicCodesReq class
- Annotations
-
- @JsonSerializable()
Constructors
-
AdminPostDiscountsDiscountDynamicCodesReq({required String code, int? usageLimit, Map<
String, dynamic> ? metadata}) -
AdminPostDiscountsDiscountDynamicCodesReq.fromJson(Map<
String, dynamic> json) -
factory
Properties
- code → String
-
A unique code that will be used to redeem the Discount
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
metadata
→ Map<
String, dynamic> ? -
An optional set of key-value pairs to hold additional information.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- usageLimit → int?
-
Maximum number of times the discount code can be used
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited