JsonFile.list constructor

JsonFile.list(
  1. String path,
  2. List? contentsList, {
  3. bool useGson = false,
  4. bool inheritFolder = false,
})

As a way to easily generate .json files, you can use the JsonFile wrapper. Just provide a list and a path

constructor
String path of the file(without .json extension)
Map the content of the file
useGson whether to generate gson or plain json

Implementation

JsonFile.list(
  this.path,
  this.contentsList, {
  this.useGson = false,
  this.inheritFolder = false,
}) : contents = null;