modifyTarification method

Future<Tarification> modifyTarification(
  1. String sdkId,
  2. Tarification tarification
)

Implementation

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