convertJson2dArray<T> function

List<List<T>> convertJson2dArray<T>(
  1. List json
)

for use with dart default types

Implementation

List<List<T>> convertJson2dArray<T>(List<dynamic> json) {
  return json.map((e) {
    if (e is List<dynamic>) {
      return convertJsonArray<T>(e);
    } else {
      return [] as List<T>;
    }
  }).toList();
}