Account class

Constructors

Account({String? name, String? number, String? party, String? type})
Returns a new Account instance.

Properties

hashCode → int
The hash code for this object.
no setteroverride
name ↔ String?
Name is the account's human name, for a statement's line label.
getter/setter pair
number ↔ String?
Number is the posting key every voucher leg, rule and report references — stable, and the reason the chart is a fixed value rather than a table anybody can edit. It looks numeric and is a string: "1000" sorts and compares as text.
getter/setter pair
party ↔ String?
Party marks the account as carrying a SUBLEDGER — receivable is money owed to us, payable money we owe — so a leg posted here also writes a payment-ledger row against a counterparty. Absent means no subledger: a bank, wallet, revenue or cost account tracks no counterparty at all.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type ↔ String?
Type is the account's fundamental class, which is also its NORMAL balance side: asset and expense are debit-normal, liability, income and equity credit-normal.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → Account?
Returns a new Account instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Account>
mapFromJson(dynamic json) → Map<String, Account>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Account>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.