preprocessRequest method
Preprocesses given request
Adds Content-Type
and Accept
headers
Implementation
void preprocessRequest(APIRequest request) {
request.headers.putIfAbsent('Content-Type', () => 'application/json');
request.headers.putIfAbsent('Accept', () => 'application/json');
}