toNdJson static method
Accepts a list of resoures and returns them as a single String (which could be put into a file) which follows the ndJson format
Implementation
static String toNdJson(List<Resource> resources) {
String stringList = '';
for (final Resource resource in resources) {
stringList += '\n${jsonEncode(resource.toJson())}';
}
stringList = stringList.replaceFirst('\n', '');
return stringList;
}