getHeaders static method

Map<String, String> getHeaders({
  1. required String apiKey,
  2. required String token,
  3. required String wid,
  4. required String rootOrgId,
})

Implementation

static Map<String, String> getHeaders(
    {required String apiKey,required  String token,required  String wid,required  String rootOrgId}) {
  // developer.log(token);

  Map<String, String> headers = {
    'Accept': 'application/json',
    'Content-Type': 'application/json; charset=utf-8',
    'Authorization': 'bearer $apiKey',
    'x-authenticated-user-token': token,
    'x-authenticated-userid': wid,
    'rootorg': 'igot',
    'userid': wid,
    'x-authenticated-user-orgid': rootOrgId
  };
  return headers;
}