AirtimeInputs class

Constructors

AirtimeInputs({required String phoneNumber, Map<String, String>? settings = const {}, MoneyInput? minDeliveredValue, MoneyInput? value, MoneyInput? maxPrice})
Returns a new AirtimeInputs instance.

Properties

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
minDeliveredValue ↔ MoneyInput?
Optional lowest accepted delivered value, for a range offer only: in the inputs.value currency and at most inputs.value. Without it, the exact value must be delivered.
getter/setter pair
phoneNumber ↔ String
The recipient's mobile number in international format, starting with + or 00.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
settings ↔ Map<String, String>?
Operator settings, keyed by the names the offer lists as settings.{name}.
getter/setter pair
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) → AirtimeInputs?
Returns a new AirtimeInputs instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<AirtimeInputs>
mapFromJson(dynamic json) → Map<String, AirtimeInputs>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<AirtimeInputs>>

Constants

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