/*
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 WindowsResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &WindowsResponse{}

// WindowsResponse struct for WindowsResponse
type WindowsResponse struct {
	Windows []WindowInfo `json:"windows,omitempty"`
}

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

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

// GetWindows returns the Windows field value if set, zero value otherwise.
func (o *WindowsResponse) GetWindows() []WindowInfo {
	if o == nil || IsNil(o.Windows) {
		var ret []WindowInfo
		return ret
	}
	return o.Windows
}

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

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

	return false
}

// SetWindows gets a reference to the given []WindowInfo and assigns it to the Windows field.
func (o *WindowsResponse) SetWindows(v []WindowInfo) {
	o.Windows = v
}

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

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

type NullableWindowsResponse struct {
	value *WindowsResponse
	isSet bool
}

func (v NullableWindowsResponse) Get() *WindowsResponse {
	return v.value
}

func (v *NullableWindowsResponse) Set(val *WindowsResponse) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableWindowsResponse(val *WindowsResponse) *NullableWindowsResponse {
	return &NullableWindowsResponse{value: val, isSet: true}
}

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

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


