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