GiftCardOrderRequestItem class

Constructors

GiftCardOrderRequestItem({required String publicId, int? quantity, GiftCardInputs? inputs})
Returns a new GiftCardOrderRequestItem instance.

Properties

hashCode → int
The hash code for this object.
no setteroverride
inputs ↔ GiftCardInputs?
The inputs the offer's requiredInputs list, plus value and maxPrice. May be omitted for a fixed offer that does not list recipientIdentifier; a range offer needs at least value.
getter/setter pair
publicId ↔ String
Offer public ID from search, the one-card route, the catalog or a quote.
getter/setter pair
quantity ↔ int?
Number of cards, at least 1; default 1. Each card becomes its own order item.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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.
override

Static Methods

fromJson(dynamic value) → GiftCardOrderRequestItem?
Returns a new GiftCardOrderRequestItem instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<GiftCardOrderRequestItem>
mapFromJson(dynamic json) → Map<String, GiftCardOrderRequestItem>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<GiftCardOrderRequestItem>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.