BalanceLine class

Constructors

BalanceLine({String? account, int? amount, String? name, String? type})
Returns a new BalanceLine instance.

Properties

account ↔ String?
Account is the chart-of-accounts number this line reports on. ABSENT marks a DERIVED line that no account holds — retained earnings is the one such line, computed from cumulative income minus expense.
getter/setter pair
amount ↔ int?
Amount is the balance as of the statement date, in whole cents, in its NATURAL sign: positive when the account behaved normally, on all three sides. Assets are debit-normal and shown as stored; liabilities and equity are credit-normal and flipped once here for display. A negative asset is a real overdraft, not a sign convention.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
name ↔ String?
Name is the account's human name, or the derived line's own name.
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. Absent on a derived line, which belongs to no account and therefore has none.
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) → BalanceLine?
Returns a new BalanceLine instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<BalanceLine>
mapFromJson(dynamic json) → Map<String, BalanceLine>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<BalanceLine>>

Constants

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