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