InboxItem class

Constructors

InboxItem({String? category, String? confidence, String? createdAt, Extracted? extracted, String? filename, String? id, String? status, String? vendor})
Returns a new InboxItem instance.

Properties

category ↔ String?
Category is the expense account the scanner proposed, as a chart number — a PROPOSAL, not a posting: nothing is booked until it is accepted.
getter/setter pair
confidence ↔ String?
Confidence is how sure the scanner is of that reading, and is the signal for whether a person needs to check it before it is booked.
getter/setter pair
createdAt ↔ String?
CreatedAt is when the document was uploaded.
getter/setter pair
extracted ↔ Extracted?
Extracted is what the scanner read off the document. Absent until it has been scanned, so its absence is "not read yet", never "nothing on it".
getter/setter pair
filename ↔ String?
Filename is the name the document was uploaded under, for a person to recognise it by. It is not part of the item's identity.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the CONTENT HASH of the uploaded bytes, which is what makes the queue idempotent: re-uploading the same document returns this item rather than adding a second one. It is also the id the scan of this document carries.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is where the document is in the queue — unsorted until the scanner has read it, and thereafter whether it is waiting on a person or has been booked.
getter/setter pair
vendor ↔ String?
Vendor is the supplier the scanner identified, surfaced beside the item so a queue renders without opening each document.
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) → InboxItem?
Returns a new InboxItem instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<InboxItem>
mapFromJson(dynamic json) → Map<String, InboxItem>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<InboxItem>>

Constants

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