headers method
Implementation
Map<String, String> headers(NetworkState store) {
Map<String, String> headers = {
"$headerTokenKey": store.token,
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"content-type": "application/json"
};
if (store.authImpersonateToken != null) {
headers["$headerImpersonateTokenKey"] = store.authImpersonateToken!;
}
print("headers: $headers");
return headers;
}