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