writeGenData function

Future<void> writeGenData(
  1. RawData rawData
)

write gen files

Implementation

Future<void> writeGenData(RawData rawData) async {
  // Folder
  writeFolder(rawData.folderPath);

  // File
  writeStringFile(
    rawData.filePath,
    rawData.fileContent,
  );

  // Books
  for (final shelf in rawData.shelves) {
    writeGenShelf(shelf);
  }
}