save method
Implementation
Future<bool> save({String? path}) async {
final file = File(path ?? CONFIG_FILE_NAME);
try {
await file.writeAsString(jsonEncode(toJson()));
return true;
} catch (e) {
print(
'SnapshotTestOptions: (save) failed to save config file $CONFIG_FILE_NAME - $e');
}
return false;
}