getTarificationsCodesOccurrences method

Future<List<LabelledOccurence>> getTarificationsCodesOccurrences(
  1. String sdkId,
  2. int minOccurrence
)

Implementation

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