getService method

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

Implementation

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