getCurrentDataOwnerHierarchy method

Future<List<DataOwnerWithType>> getCurrentDataOwnerHierarchy(
  1. String sdkId
)

Implementation

Future<List<DataOwnerWithType>> getCurrentDataOwnerHierarchy(String sdkId) async {
	final res = await _methodChannel.invokeMethod<String>(
		'DataOwnerApi.getCurrentDataOwnerHierarchy',
		{
			"sdkId": sdkId,
		}
	).catchError(convertPlatformException);
	if (res == null) throw AssertionError("received null result from platform method getCurrentDataOwnerHierarchy");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as List<dynamic>).map((x1) => DataOwnerWithType.fromJSON(x1) ).toList();
}