getCurrentDataOwnerHierarchy method
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();
}