parseDecodedList<T> function

List<T> parseDecodedList<T>(
  1. dynamic decoded,
  2. JsonParser<T> parser
)

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();