mergeTo method

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

Implementation

Future<Invoice> mergeTo(String sdkId, String invoiceId, List<String> ids) async {
	final res = await _methodChannel.invokeMethod<String>(
		'InvoiceApi.tryAndRecover.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 Invoice.fromJSON(parsedResJson);
}