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