getTarificationWithParts method

Future<Tarification> getTarificationWithParts(
  1. String sdkId,
  2. String type,
  3. String tarification,
  4. String version,
)

Implementation

Future<Tarification> getTarificationWithParts(String sdkId, String type, String tarification, String version) async {
	final res = await _methodChannel.invokeMethod<String>(
		'TarificationApi.getTarificationWithParts',
		{
			"sdkId": sdkId,
			"type": jsonEncode(type),
			"tarification": jsonEncode(tarification),
			"version": jsonEncode(version),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method getTarificationWithParts");
	final parsedResJson = jsonDecode(res);
	return Tarification.fromJSON(parsedResJson);
}