Question class

Constructors

Question({String? account, String? amount, String? id, String? kind, String? postedAt, String? text})
Returns a new Question instance.

Properties

account ↔ String?
Account is the chart number the questioned entry posted to, where one applies.
getter/setter pair
amount ↔ String?
Amount is the figure that makes the question concrete, already FORMATTED for display with its currency symbol — a string, not cents, and not for arithmetic.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the source transaction the question is about, so answering it leads straight back to the entry that raised it.
getter/setter pair
kind ↔ String?
Kind is what looked wrong: outlier (a charge far above the usual), reversal (a posting undone), roundoff (a balancing plug big enough to be worth explaining), uncosted (revenue booked with no cost matched to it), or overdrawn (a wallet spent past its balance).
getter/setter pair
postedAt ↔ String?
PostedAt anchors the question in time — when the entry it concerns posted.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text ↔ String?
Text is the question itself, written for a founder to answer directly.
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) → Question?
Returns a new Question instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Question>
mapFromJson(dynamic json) → Map<String, Question>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Question>>

Constants

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