getTarificationWithParts method
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);
}