FaucetResponse class
Response of the faucet /v2/gas route.
On success the faucet returns
{"status": "Success", "coins_sent": [...]}; on failure status is an
object such as {"Failure": {"Internal": "..."}} and coins_sent is
null, so error carries the stringified failure and isSuccess is false.
Constructors
-
FaucetResponse(List<
FaucetCoinInfo> coinsSent, String? error) - FaucetResponse.fromJson(dynamic data)
-
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → ObjectId -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited