getService method

Future<DecryptedService> getService(
  1. String sdkId,
  2. String serviceId
)

Implementation

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