PrefillResponse class
Constructors
-
PrefillResponse({List<
ProductType> productTypes = const [], required String prefillToken, required num expiresInSeconds, required num maxUses, String? partnerPageUrl, String? embedSnippet}) - Returns a new PrefillResponse instance.
Properties
- embedSnippet ↔ String?
-
The snippet to be embedded in the partner's page
getter/setter pair
- expiresInSeconds ↔ num
-
The number of seconds until the prefill token expires
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- maxUses ↔ num
-
The maximum number of times the prefill token can be used
getter/setter pair
- partnerPageUrl ↔ String?
-
The URL to the partner's page
getter/setter pair
- prefillToken ↔ String
-
The Prefill token used for retrieving the prefill data
getter/setter pair
-
productTypes
↔ List<
ProductType> -
Product types in which the
Prefillis associatedgetter/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) → PrefillResponse? -
Returns a new PrefillResponse instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< PrefillResponse> -
mapFromJson(
dynamic json) → Map< String, PrefillResponse> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< PrefillResponse> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.