DefaultAccount class
An account from Zaim's public account master, GET /v2/account.
This endpoint needs no authentication and returns only an id and a name —
it describes the account types Zaim ships with, not any user's accounts.
For the accounts a signed-in user actually has, use client.account.list()
and the richer ZaimAccount.
Parameters
Required
- Annotations
-
- @immutable
Constructors
- DefaultAccount({required int id, required String name})
-
Creates a master account.
const
-
DefaultAccount.fromJson(Map<
String, dynamic> json) -
Parses one element of the
accountsarray.factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialises back to Zaim's wire format.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override