mergeTo method

Future<DecryptedInvoice> mergeTo(
  1. String sdkId,
  2. String invoiceId,
  3. List<String> ids
)

Implementation

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