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

coinsSent List<FaucetCoinInfo>
final
error String?
final
hashCode int
The hash code for this object.
no setterinherited
isSuccess bool
no setter
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
toString() ObjectId
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited