saveContentsJson method
void
saveContentsJson()
Writes out the Contents.json file.
Implementation
void saveContentsJson() {
final file = File('${assetPath}Contents.json');
const encoder = JsonEncoder.withIndent(' ');
file.writeAsStringSync(encoder.convert(this), flush: true);
CliLogger.success(
'Generated `Contents.json` file',
level: CliLoggerLevel.two,
);
}