getCurrentDataOwnerStub method

Future<CryptoActorStubWithType> getCurrentDataOwnerStub(
  1. String sdkId
)

Implementation

Future<CryptoActorStubWithType> getCurrentDataOwnerStub(String sdkId) async {
	final res = await _methodChannel.invokeMethod<String>(
		'DataOwnerApi.getCurrentDataOwnerStub',
		{
			"sdkId": sdkId,
		}
	);
	if (res == null) throw AssertionError("received null result from platform method getCurrentDataOwnerStub");
	final parsedResJson = jsonDecode(res);
	return CryptoActorStubWithType.fromJSON(parsedResJson);
}