GetBudgetResponse class
Represents the result of a 'get_budget' response.
- Inheritance
-
- Object
- NwcResponse
- GetBudgetResponse
Constructors
- GetBudgetResponse.new({required String resultType, required int usedBudget, required int totalBudget, int? renewsAt, required BudgetRenewalPeriod renewalPeriod})
-
GetBudgetResponse.deserialize(Map<
String, dynamic> input) -
factory
Properties
- errorCode ↔ String?
-
The error code.
getter/setter pairinherited
- errorMessage ↔ String?
-
The error message.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- renewalPeriod → BudgetRenewalPeriod
-
final
- renewsAt → int?
-
final
- resultType → String
-
The type of the result.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalBudget → int
-
final
- totalBudgetSats → int
-
no setter
- usedBudget → int
-
final
- userBudgetSats → int
-
no setter
Methods
-
deserializeError(
Map< String, dynamic> input) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited