modifyInvoice method

Future<DecryptedInvoice> modifyInvoice(
  1. String sdkId,
  2. DecryptedInvoice entity
)

Implementation

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