Extracted class

Constructors

Extracted({String? category, String? currency, String? issuedAt, List<LineItem> lineItems = const [], String? merchant, String? note, int? taxCents, int? totalCents})
Returns a new Extracted instance.

Properties

category ↔ String?
Category is the expense bucket the SCANNER guessed, as a slug — a hint only. Vendor rules override it whenever they know better, so this is the model's reading and not the account the entry will land on.
getter/setter pair
currency ↔ String?
Currency is the ISO code the document is denominated in.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
issuedAt ↔ String?
IssuedAt is the document's OWN date as YYYY-MM-DD — when the bill was issued, which is not when it was uploaded or when it will post.
getter/setter pair
lineItems ↔ List<LineItem>
LineItems are the individual lines read off the document, where it had any. They need not sum to totalCents: a document may carry lines the scanner could not read, and the total is taken from the total.
getter/setter pair
merchant ↔ String?
Merchant is the supplier as printed on the document.
getter/setter pair
note ↔ String?
Note is anything else worth carrying from the document that has no field of its own.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
taxCents ↔ int?
TaxCents is how much of that total is tax, in cents. It is part of totalCents, not additional to it.
getter/setter pair
totalCents ↔ int?
TotalCents is the document total in whole cents, tax INCLUDED.
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) → Extracted?
Returns a new Extracted instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Extracted>
mapFromJson(dynamic json) → Map<String, Extracted>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Extracted>>

Constants

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