Obligation class

Constructors

Obligation({int? amountCents, String? asOf, String? code, String? every, String? label, bool? minimum, bool? passThrough, String? source_, bool? stale})
Returns a new Obligation instance.

Properties

amountCents ↔ int?
AmountCents is what it costs each period.
getter/setter pair
asOf ↔ String?
AsOf is when that amount was last checked against its source, RFC 3339 date.
getter/setter pair
code ↔ String?
Code names the obligation so a caller can branch without reading prose.
getter/setter pair
every ↔ String?
Every is how often it falls due — "yearly" for every obligation known here.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
label ↔ String?
Label is what the payer sees.
getter/setter pair
minimum ↔ bool?
Minimum marks a floor rather than a fixed price — a franchise tax that scales with shares or assets is quoted at its minimum, and an entity past the threshold owes more. Saying so is the difference between a quote and a number someone later disputes.
getter/setter pair
passThrough ↔ bool?
PassThrough marks money we collect and remit to the state rather than keep.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source_ ↔ String?
Source names the authority that publishes a pass-through amount, so the figure can be checked without first working out who would know.
getter/setter pair
stale ↔ bool?
Stale reports that AsOf is older than the review window. It tells; it does not block.
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) → Obligation?
Returns a new Obligation instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Obligation>
mapFromJson(dynamic json) → Map<String, Obligation>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Obligation>>

Constants

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