getHeaders method

Map<String, String> getHeaders()

Implementation

Map<String, String> getHeaders() {
  String? accessToken = SpUtil.getString(BytedeskConstants.accessToken);
  Map<String, String> headers = {
    HttpHeaders.contentTypeHeader: "application/json",
    HttpHeaders.authorizationHeader: "Bearer $accessToken"
  };
  return headers;
}