func ParseExampleGetResponse(rsp *http.Response) (*ExampleGetResponse, error) {
	bodyBytes, err := ioutil.ReadAll(rsp.Body)
	defer rsp.Body.Close()
	if err != nil {
		return nil, err
	}

	response := &ExampleGetResponse{
		Body:         bodyBytes,
		HTTPResponse: rsp,
	}

	switch {
	case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
		var dest Document
		if err := json.Unmarshal(bodyBytes, &dest); err != nil {
			return nil, err
		}
		response.JSON200 = &dest

	}

	return response, nil
}
// ParseExampleGetResponse parses an HTTP response from a ExampleGetWithResponse call
ParseExampleGetResponse parses an HTTP response from a ExampleGetWithResponse call
// ParseExampleGetResponse parses an HTTP response from a ExampleGetWithResponse call
func ParseExampleGetResponse(rsp *http.Response) (*ExampleGetResponse, error) {
	bodyBytes, err := ioutil.ReadAll(rsp.Body)
	defer rsp.Body.Close()
	if err != nil {
		return nil, err
	}
	response := &ExampleGetResponse{
		Body:         bodyBytes,
		HTTPResponse: rsp,
	}
	switch {
	case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
		var dest Document
		if err := json.Unmarshal(bodyBytes, &dest); err != nil {
			return nil, err
		}
		response.JSON200 = &dest
	}
	return response, nil
}
func ParseExampleGetResponse ( rsp * http . Response ) ( * ExampleGetResponse , error ) { bodyBytes , err := ioutil . ReadAll ( rsp . Body ) defer rsp . Body . Close ( ) if err != nil { return nil , err } response := & ExampleGetResponse { Body : bodyBytes , HTTPResponse : rsp , } switch { case strings . Contains ( rsp . Header . Get ( " " ) , " " ) && rsp . StatusCode == 200 : var dest Document if err := json . Unmarshal ( bodyBytes , & dest ) ; err != nil { return nil , err } response . JSON200 = & dest } return response , nil }
ParseExampleGetResponse parses an HTTP response from a ExampleGetWithResponse call
ParseExampleGetResponse parses an HTTP response from a ExampleGetWithResponse call