getServiceCodesOccurrences method
Implementation
Future<List<LabelledOccurence>> getServiceCodesOccurrences(String sdkId, String codeType, int minOccurrences) async {
final res = await _methodChannel.invokeMethod<String>(
'ContactApi.getServiceCodesOccurrences',
{
"sdkId": sdkId,
"codeType": jsonEncode(codeType),
"minOccurrences": jsonEncode(minOccurrences),
}
);
if (res == null) throw AssertionError("received null result from platform method getServiceCodesOccurrences");
final parsedResJson = jsonDecode(res);
return (parsedResJson as List<dynamic>).map((x1) => LabelledOccurence.fromJSON(x1) ).toList();
}