SourceState class

Constructors

SourceState({bool? available, String? note, String? scope, String? source_})
Returns a new SourceState instance.

Properties

available ↔ bool?
Available reports whether this ledger answered; false is honest "unavailable", never a zero that would read as no usage.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
note ↔ String?
Note says in prose what the ledger's numbers mean.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope ↔ String?
Scope is whose usage the ledger measures: user or org.
getter/setter pair
source_ ↔ String?
Source is the table of record behind the ledger.
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) → SourceState?
Returns a new SourceState instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<SourceState>
mapFromJson(dynamic json) → Map<String, SourceState>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<SourceState>>

Constants

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