reassignInvoice method

Future<Invoice> reassignInvoice(
  1. String sdkId,
  2. Invoice invoice
)

Implementation

Future<Invoice> reassignInvoice(String sdkId, Invoice invoice) async {
	final res = await _methodChannel.invokeMethod<String>(
		'InvoiceApi.tryAndRecover.reassignInvoice',
		{
			"sdkId": sdkId,
			"invoice": jsonEncode(Invoice.encode(invoice)),
		}
	).catchError(convertPlatformException);
	if (res == null) throw AssertionError("received null result from platform method reassignInvoice");
	final parsedResJson = jsonDecode(res);
	return Invoice.fromJSON(parsedResJson);
}