JsonFile constructor
JsonFile(})
As a way to easily generate .json files, you can use the JsonFile wrapper. Just provide a map 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(
this.path,
this.contents, {
this.useGson = false,
this.inheritFolder = false,
}) : contentsList = null;