convertJson4dArray<T> function

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

for use with dart default types

Implementation

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