getInvoice method

Future<Invoice> getInvoice(
  1. String sdkId,
  2. String entityId
)

Implementation

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