function createBedrockResponse({ bedrockCommand, response, err }) {
  let bedrockResponse

  if (err) {
    bedrockResponse = new BedrockResponse({ bedrockCommand, response: err, isError: err !== null })
  } else {
    bedrockResponse = new BedrockResponse({ bedrockCommand, response })
  }
  return bedrockResponse
}
Creates and instance of BedrockResponse

@param {object} params function params
@param {BedrockCommand} params.bedrockCommand parsed input
@param {object} params.response response from bedrock
@param {Error|null} params.err error from request if exists

@returns {BedrockResponse} parsed response from bedrock