appendCodes method
Implementation
Future<List<EncryptedInvoice>> appendCodes(String sdkId, String userId, String type, String sentMediumType, String secretFKeys, String? insuranceId, String? invoiceId, int? gracePeriod, List<EncryptedInvoicingCode> invoicingCodes) async {
final res = await _methodChannel.invokeMethod<String>(
'InvoiceBasicApi.appendCodes',
{
"sdkId": sdkId,
"userId": jsonEncode(userId),
"type": jsonEncode(type),
"sentMediumType": jsonEncode(sentMediumType),
"secretFKeys": jsonEncode(secretFKeys),
"insuranceId": jsonEncode(insuranceId),
"invoiceId": jsonEncode(invoiceId),
"gracePeriod": jsonEncode(gracePeriod),
"invoicingCodes": jsonEncode(invoicingCodes.map((x0) => EncryptedInvoicingCode.encode(x0)).toList()),
}
);
if (res == null) throw AssertionError("received null result from platform method appendCodes");
final parsedResJson = jsonDecode(res);
return (parsedResJson as List<dynamic>).map((x1) => EncryptedInvoice.fromJSON(x1) ).toList();
}