createFinancialReport method
Implementation
@override
Future<Map> createFinancialReport(
String token, Map<String, dynamic> financialreportInfo) async {
final baseUrl = await getBaseUrl;
var url = Uri.parse("$baseUrl/api/v1/finance/financial_reports/create");
var jsonBody = jsonEncode(financialreportInfo);
var response = await http.post(
url,
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer $token"
},
body: jsonBody,
);
var data = jsonDecode(response.body);
return data;
}