GiftCardInputs class
Constructors
- GiftCardInputs({String? recipientIdentifier, String? recipientEmail, String? giftMessage, MoneyInput? value, MoneyInput? maxPrice})
- Returns a new GiftCardInputs instance.
Properties
- giftMessage ↔ String?
-
Message for the gift email, at most 500 characters; allowed only with
recipientEmail.getter/setter pair - hashCode → int
-
The hash code for this object.
no setteroverride
- maxPrice ↔ MoneyInput?
-
Optional highest accepted unit price, in the order or cart currency; a higher current unit price gives 409 / 11002.
getter/setter pair
- recipientEmail ↔ String?
-
Optional: sends the card to this address as a gift email; at most 254 characters.
getter/setter pair
- recipientIdentifier ↔ String?
-
Recipient's government or tax identifier; required only when the offer lists it.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ MoneyInput?
-
Required for a range offer, within its min and max and on its step; optional for a fixed offer, where it must equal the offer's amount; in the offer's value currency.
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.
override
Static Methods
-
fromJson(
dynamic value) → GiftCardInputs? -
Returns a new GiftCardInputs instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< GiftCardInputs> -
mapFromJson(
dynamic json) → Map< String, GiftCardInputs> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< GiftCardInputs> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.