List<T>? parseList<T>(jsonArray, Parser<T> parser) => jsonArray is List ? jsonArray.map((jsonItem) => parser(jsonItem)).toList() : null;