getTarification method

Future<Tarification> getTarification(
  1. String sdkId,
  2. String tarificationId
)

Implementation

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