ServiceAvailableAPIResult class
Dart wrapper around `ServiceAvailableAPIResult`
in (https://developer.samsung.com/smarttv/develop/api-references/samsung-product-api-references/billing-api.html).
Defines a dictionary for data returned by the IsServiceAvailable API. This only can be used in BillingManager.isAvailable.
- Annotations
-
- @JsonSerializable()
- @immutable
Constructors
- ServiceAvailableAPIResult({required String status, required String result, String? serviceYn})
-
Creates a ServiceAvailableAPIResult with the given purchase details.
const
-
ServiceAvailableAPIResult.fromJson(Map<
String, dynamic> json) -
Constructs an instance of this from a json string.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- result → String
-
The result message of connecting to billing server.
Returns "Success" on success.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceYn → String?
-
Returns "Y" if the service is available.
It will be null, if disconnect to billing server.
final
- status → String
-
The result code of connecting to billing server.
Returns "100000" on success and other codes on failure.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Constructs an instance of this to a json string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited