load static method

Vault load(
  1. String vaultJson
)

Implementation

static Vault load(String vaultJson) {
  final nativeJson = vaultJson.toNativeUtf8();
  try {
    final ffiVault = DartApi.native.vault
        .load(nativeJson)
        .extract((res) => res.asPointer<Void>());
    return Vault._(ffiVault, true);
  } finally {
    calloc.free(nativeJson);
  }
}