DfWebReqParam constructor

DfWebReqParam(
  1. {String authToken,
  2. Map<String, String> headers,
  3. List<String> pathVariables,
  4. Map<String, String> reqParams,
  5. Map<String, dynamic> reqBody}
)

Implementation

DfWebReqParam({String authToken, Map<String,String> headers, this.pathVariables, this.reqParams, this.reqBody}) {
  if (pathVariables == null) {
    pathVariables = List<String>();
  }
  if (reqParams == null) {
    reqParams = Map<String,String>();
  }
  if (reqBody == null) {
    reqBody = Map<String,dynamic>();
  }
  if (headers == null) {
    _headers = Map<String,String>();
  }
  setAuthToken(authToken);
}