asListOrNullFromJson<T> function
Convert any map value with key
to List
Implementation
List<T>? asListOrNullFromJson<T>(Map<String, dynamic>? json, String key,
{required T Function(dynamic json) fromJson}) {
return asListOrNull(
json,
key,
)?.map((e) => fromJson(e)).toList();
}