getInvoice method
Implementation
@override
Future<Map> getInvoice(String token, String invoiceId) async {
final String baseUrl = await getBaseUrl;
var url = Uri.parse("$baseUrl/api/v1/invoices/$invoiceId");
var response = await http.get(
url,
headers: {"Authorization": "Bearer $token", "x-jwt-account-id": "string"},
);
var data = jsonDecode(response.body);
//print(data);
return data;
}