/*
Echo Server API

Echo Server API

API version: 0.1.0
Contact: team@openapitools.org
*/

// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

package openapi

import (
	"encoding/json"
)

// checks if the TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter{}

// TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter struct for TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
type TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter struct {
	Values []string `json:"values,omitempty"`
}

// NewTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter instantiates a new TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() *TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
	this := TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter{}
	return &this
}

// NewTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterWithDefaults instantiates a new TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameterWithDefaults() *TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
	this := TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter{}
	return &this
}

// GetValues returns the Values field value if set, zero value otherwise.
func (o *TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter) GetValues() []string {
	if o == nil || IsNil(o.Values) {
		var ret []string
		return ret
	}
	return o.Values
}

// GetValuesOk returns a tuple with the Values field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter) GetValuesOk() ([]string, bool) {
	if o == nil || IsNil(o.Values) {
		return nil, false
	}
	return o.Values, true
}

// HasValues returns a boolean if a field has been set.
func (o *TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter) HasValues() bool {
	if o != nil && !IsNil(o.Values) {
		return true
	}

	return false
}

// SetValues gets a reference to the given []string and assigns it to the Values field.
func (o *TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter) SetValues(v []string) {
	o.Values = v
}

func (o TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter) MarshalJSON() ([]byte, error) {
	toSerialize,err := o.ToMap()
	if err != nil {
		return []byte{}, err
	}
	return json.Marshal(toSerialize)
}

func (o TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !IsNil(o.Values) {
		toSerialize["values"] = o.Values
	}
	return toSerialize, nil
}

type NullableTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter struct {
	value *TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
	isSet bool
}

func (v NullableTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter) Get() *TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
	return v.value
}

func (v *NullableTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter) Set(val *TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter) {
	v.value = val
	v.isSet = true
}

func (v NullableTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter) IsSet() bool {
	return v.isSet
}

func (v *NullableTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter) Unset() {
	v.value = nil
	v.isSet = false
}

func NewNullableTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(val *TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter) *NullableTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
	return &NullableTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter{value: val, isSet: true}
}

func (v NullableTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter) MarshalJSON() ([]byte, error) {
	return json.Marshal(v.value)
}

func (v *NullableTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter) UnmarshalJSON(src []byte) error {
	v.isSet = true
	return json.Unmarshal(src, &v.value)
}


