extendedJsonDecode function
a wrapper around jsonDecode to upcast types from dynamic to primitives
Implementation
dynamic extendedJsonDecode(String encoded) {
final r = jsonDecode(encoded);
return r is Iterable ? r.map((e) => _intConverter.fromJson(e)).toList() : r;
}