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