SlotRequest class final
The web's whole query read from JSON: the rules, and the range when
it has one (a checkSlot may go without).
Constructors
- SlotRequest(SlotRules rules, {Instant? from, Instant? to})
-
const
Properties
Methods
-
check(
Object start) → SlotCheck - checkSlot within the range, if any.
-
find(
) → SlotsResult -
findSlots over the range;
invalid-slot-querywithout one. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Object? json, {Object? checking}) → (SlotRequest?, List< Problem> ) -
The web's JSON shape: minutes as numbers, moments as ISO strings,
"24:00"for the next midnight. Never throws: a field that cannot be read is an error (null), an entry that cannot be read is dropped with a warning — pass the problems on with the answer.checking: the start a check will look at, when the query has nofrom/to.