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

  • id: The master account id.
  • name: The English display name.
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 accounts array.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
id → int
The master account id.
final
name → String
The display name, for example Wallet.
final
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
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