getCurrentDataOwnerId method

Future<String> getCurrentDataOwnerId(
  1. String sdkId
)

Implementation

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