finalizePackage method

Future<FinalizePackageCompletion> finalizePackage()

Implementation

Future<FinalizePackageCompletion> finalizePackage() async {
  var response = await _bridge.invokeMethod("finalizePackage", []);

  var jsonObject = json.decode(response);
  var action = DocReaderAction.getByValue(jsonObject["action"])!;
  var info = TransactionInfo.fromJson(jsonObject["info"]);
  var error = DocReaderException.fromJson(jsonObject["error"]);

  return (action, info, error);
}