createPass method

Future<File> createPass(
  1. PasskitPass pass
)

Implementation

Future<File> createPass(PasskitPass pass) async {
  final escapedPass = pass.toJson()..removeWhere((_, value) => value == null);
  final encodedString = jsonEncode(escapedPass);

  return _saveFile('pass.json', encodedString);
}