getDataOwner method

Future<DataOwnerWithType> getDataOwner(
  1. String sdkId,
  2. String ownerId
)

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);
}