getHeaders static method
Implementation
static Map<String, String> getHeaders({ bool isFormData = false }) {
Map<String, String> headers = {
"authorization": CoffeeStorage.getJwtToken(),
"accept": 'application/json; charset=utf-8',
};
if (!isFormData) {
headers["content-type"] = 'application/json; charset=utf-8';
}
return headers;
}