getCurrentDataOwner method

Future<DataOwnerWithType> getCurrentDataOwner(
  1. String sdkId
)

Implementation

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