GLRow class

Constructors

GLRow({String? account, String? against, int? credit, int? debit, int? id, String? postingAt, String? remarks, String? sourceId, String? sourceKind})
Returns a new GLRow instance.

Properties

account ↔ String?
Account is the chart-of-accounts number this leg posts to.
getter/setter pair
against ↔ String?
Against names the OTHER accounts in the same voucher — the contra side of this leg — so a single row reads as an entry rather than as half of one.
getter/setter pair
credit ↔ int?
Credit is the amount credited to that account, in whole cents.
getter/setter pair
debit ↔ int?
Debit is the amount debited to that account, in whole cents. Exactly one of debit and credit is non-zero on a leg; a negative amount is never used to mean the other side.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ int?
ID is the entry's position in the ledger. The ledger is append-only, so ids ascend with posting order and a higher id is a later entry.
getter/setter pair
postingAt ↔ String?
PostingAt is the accounting date this entry belongs to — what the reports window on, which need not be when the row was written.
getter/setter pair
remarks ↔ String?
Remarks is the memo carried onto the entry, for a human reading the ledger.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceId ↔ String?
SourceID identifies that originating record within its kind.
getter/setter pair
sourceKind ↔ String?
SourceKind is what caused the posting: a bank line, a scanned document, a commerce sale. With sourceId it traces the entry back to the thing that produced it.
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) → GLRow?
Returns a new GLRow instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<GLRow>
mapFromJson(dynamic json) → Map<String, GLRow>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<GLRow>>

Constants

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