convertJson3dArray<T> function

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

for use with dart default types

Implementation

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