export static method

void export({
  1. required Bot bot,
  2. String? fileName,
})

Export a PaperPlane file.

Implementation

static void export({
  required Bot bot,
  String? fileName,
}) {
  io.File(fileName ?? 'PaperPlaneBot.json')
      .writeAsString(jsonEncode(bot.toJson()));
}