modifyInvoices method

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

Implementation

Future<List<EncryptedInvoice>> modifyInvoices(String sdkId, List<EncryptedInvoice> entities) async {
	final res = await _methodChannel.invokeMethod<String>(
		'InvoiceBasicApi.modifyInvoices',
		{
			"sdkId": sdkId,
			"entities": jsonEncode(entities.map((x0) => EncryptedInvoice.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) => EncryptedInvoice.fromJSON(x1) ).toList();
}