Coupon class
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake, explicitToJson: true)
Constructors
-
Coupon({String? id, String? object, int? amountOff, int? created, String? currency, String? duration, int? durationInMonths, bool? livemode, int? maxRedemptions, Map<
String, dynamic> ? metadata, String? name, double? percentOff, int? redeemBy, int? timesRedeemed, bool? valid}) -
Coupon.fromJson(Map<
String, dynamic> json) -
factory
Properties
- amountOff ↔ int?
-
getter/setter pair
- created ↔ int?
-
getter/setter pair
- currency ↔ String?
-
getter/setter pair
- duration ↔ String?
-
getter/setter pair
- durationInMonths ↔ int?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
getter/setter pair
- livemode ↔ bool?
-
getter/setter pair
- maxRedemptions ↔ int?
-
getter/setter pair
-
metadata
↔ Map<
String, dynamic> ? -
getter/setter pair
- name ↔ String?
-
getter/setter pair
- object ↔ String?
-
getter/setter pair
- percentOff ↔ double?
-
getter/setter pair
- redeemBy ↔ int?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timesRedeemed ↔ int?
-
getter/setter pair
- valid ↔ bool?
-
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited