load static method
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);
}
}