save method

Future<void> save(
  1. String lockPath
)

Implementation

Future<void> save(String lockPath) async {
  final file = File(lockPath);
  final jsonString = const JsonEncoder.withIndent('  ').convert(toJson());
  await file.writeAsString(jsonString);
}