reassignInvoice method

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

Implementation

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