fromJson static method

(SlotRequest?, List<Problem>) fromJson(
  1. Object? json, {
  2. Object? checking,
})

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 no from/to.

Implementation

static (SlotRequest?, List<Problem>) fromJson(Object? json, {Object? checking}) =>
    readSlotRequest(json, checking: checking);