/*
Daytona Toolbox API

Daytona Toolbox API

API version: v0.0.0-dev
*/

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

package toolbox

import (
	"encoding/json"
)

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

// DisplayInfoResponse struct for DisplayInfoResponse
type DisplayInfoResponse struct {
	Displays []DisplayInfo `json:"displays,omitempty"`
}

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

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

// GetDisplays returns the Displays field value if set, zero value otherwise.
func (o *DisplayInfoResponse) GetDisplays() []DisplayInfo {
	if o == nil || IsNil(o.Displays) {
		var ret []DisplayInfo
		return ret
	}
	return o.Displays
}

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

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

	return false
}

// SetDisplays gets a reference to the given []DisplayInfo and assigns it to the Displays field.
func (o *DisplayInfoResponse) SetDisplays(v []DisplayInfo) {
	o.Displays = v
}

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

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

type NullableDisplayInfoResponse struct {
	value *DisplayInfoResponse
	isSet bool
}

func (v NullableDisplayInfoResponse) Get() *DisplayInfoResponse {
	return v.value
}

func (v *NullableDisplayInfoResponse) Set(val *DisplayInfoResponse) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableDisplayInfoResponse(val *DisplayInfoResponse) *NullableDisplayInfoResponse {
	return &NullableDisplayInfoResponse{value: val, isSet: true}
}

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

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


