parseDecodedList<T> function
Parses a list from the given decoded JSON using the given parser.
Implementation
List<T> parseDecodedList<T>(dynamic decoded, JsonParser<T> parser) =>
decoded == null
? <T>[]
: (decoded as List<dynamic>).map((obj) => parser(obj)).toList();