modifyInvoices method

Future<List<DecryptedInvoice>> modifyInvoices(
  1. String sdkId,
  2. List<DecryptedInvoice> entities
)

Implementation

Future<List<DecryptedInvoice>> modifyInvoices(String sdkId, List<DecryptedInvoice> entities) async {
	final res = await _methodChannel.invokeMethod<String>(
		'InvoiceApi.modifyInvoices',
		{
			"sdkId": sdkId,
			"entities": jsonEncode(entities.map((x0) => DecryptedInvoice.encode(x0)).toList()),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method modifyInvoices");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as List<dynamic>).map((x1) => DecryptedInvoice.fromJSON(x1) ).toList();
}