getTarifications method

Future<List<Tarification>> getTarifications(
  1. String sdkId,
  2. List<String> tarificationIds
)

Implementation

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