/*
1Backend

AI-native microservices platform.

API version: 0.8.2
Contact: sales@singulatron.com
*/

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

package openapi

import (
	"encoding/json"
)

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

// ProxySvcListRoutesResponse struct for ProxySvcListRoutesResponse
type ProxySvcListRoutesResponse struct {
	Routes []ProxySvcRoute `json:"routes,omitempty"`
}

// NewProxySvcListRoutesResponse instantiates a new ProxySvcListRoutesResponse 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 NewProxySvcListRoutesResponse() *ProxySvcListRoutesResponse {
	this := ProxySvcListRoutesResponse{}
	return &this
}

// NewProxySvcListRoutesResponseWithDefaults instantiates a new ProxySvcListRoutesResponse 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 NewProxySvcListRoutesResponseWithDefaults() *ProxySvcListRoutesResponse {
	this := ProxySvcListRoutesResponse{}
	return &this
}

// GetRoutes returns the Routes field value if set, zero value otherwise.
func (o *ProxySvcListRoutesResponse) GetRoutes() []ProxySvcRoute {
	if o == nil || IsNil(o.Routes) {
		var ret []ProxySvcRoute
		return ret
	}
	return o.Routes
}

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

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

	return false
}

// SetRoutes gets a reference to the given []ProxySvcRoute and assigns it to the Routes field.
func (o *ProxySvcListRoutesResponse) SetRoutes(v []ProxySvcRoute) {
	o.Routes = v
}

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

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

type NullableProxySvcListRoutesResponse struct {
	value *ProxySvcListRoutesResponse
	isSet bool
}

func (v NullableProxySvcListRoutesResponse) Get() *ProxySvcListRoutesResponse {
	return v.value
}

func (v *NullableProxySvcListRoutesResponse) Set(val *ProxySvcListRoutesResponse) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableProxySvcListRoutesResponse(val *ProxySvcListRoutesResponse) *NullableProxySvcListRoutesResponse {
	return &NullableProxySvcListRoutesResponse{value: val, isSet: true}
}

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

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


