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

// AccessibilityNodesResponse struct for AccessibilityNodesResponse
type AccessibilityNodesResponse struct {
	Matches []ComputerUseAccessibilityNode `json:"matches,omitempty"`
	Truncated *bool `json:"truncated,omitempty"`
}

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

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

// GetMatches returns the Matches field value if set, zero value otherwise.
func (o *AccessibilityNodesResponse) GetMatches() []ComputerUseAccessibilityNode {
	if o == nil || IsNil(o.Matches) {
		var ret []ComputerUseAccessibilityNode
		return ret
	}
	return o.Matches
}

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

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

	return false
}

// SetMatches gets a reference to the given []ComputerUseAccessibilityNode and assigns it to the Matches field.
func (o *AccessibilityNodesResponse) SetMatches(v []ComputerUseAccessibilityNode) {
	o.Matches = v
}

// GetTruncated returns the Truncated field value if set, zero value otherwise.
func (o *AccessibilityNodesResponse) GetTruncated() bool {
	if o == nil || IsNil(o.Truncated) {
		var ret bool
		return ret
	}
	return *o.Truncated
}

// GetTruncatedOk returns a tuple with the Truncated field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccessibilityNodesResponse) GetTruncatedOk() (*bool, bool) {
	if o == nil || IsNil(o.Truncated) {
		return nil, false
	}
	return o.Truncated, true
}

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

	return false
}

// SetTruncated gets a reference to the given bool and assigns it to the Truncated field.
func (o *AccessibilityNodesResponse) SetTruncated(v bool) {
	o.Truncated = &v
}

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

func (o AccessibilityNodesResponse) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !IsNil(o.Matches) {
		toSerialize["matches"] = o.Matches
	}
	if !IsNil(o.Truncated) {
		toSerialize["truncated"] = o.Truncated
	}
	return toSerialize, nil
}

type NullableAccessibilityNodesResponse struct {
	value *AccessibilityNodesResponse
	isSet bool
}

func (v NullableAccessibilityNodesResponse) Get() *AccessibilityNodesResponse {
	return v.value
}

func (v *NullableAccessibilityNodesResponse) Set(val *AccessibilityNodesResponse) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableAccessibilityNodesResponse(val *AccessibilityNodesResponse) *NullableAccessibilityNodesResponse {
	return &NullableAccessibilityNodesResponse{value: val, isSet: true}
}

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

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


