loadInvoiceRequest function
Loads an InvoiceRequest from a JSON file.
fileName: Name of the file to load.
useAsAbsolutePath: If true, treats fileName as a full absolute path.
Returns an InvoiceRequest object or null if file not found or parsing fails.
Implementation
Future<InvoiceRequest?> loadInvoiceRequest(
{required String fileName, bool useAsAbsolutePath = false}) async {
return _loadInvoiceRequest(
fileName: fileName, useAsAbsolutePath: useAsAbsolutePath);
}