|
| Object | readAsList (Map json, String key) |
| | Reads [key] from [json] and normalizes it to a list.
|
| Object | readAsSingle (Map json, String key) |
| | Reads [key] from [json] only if the value is a map, otherwise returns null.
|
| Object | readNestedAsList (Map json, String key) |
| | Reads [key] from [json], applies [_unwrapMap], and normalizes to a list.
|
| Object | readWrappedAsList (Map json, String key) |
| | Unwraps a single-element array containing a single-key map into a list.
|
| List< dynamic > | _asList (Object? value) |
| | null → [], [...] → [...], x → [x]
|
| Object | _unwrapList (Object? value) |
| | [x] → x, otherwise identity
|
| Object | _unwrapMap (Object? value) |
| | {"k": v} → v, otherwise identity
|