/*
 * Svix API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * API version: 1.1.1
 */

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

package openapi

import (
	"encoding/json"
)

// EndpointHeadersPatchIn struct for EndpointHeadersPatchIn
type EndpointHeadersPatchIn struct {
	Headers map[string]string `json:"headers"`
}

// NewEndpointHeadersPatchIn instantiates a new EndpointHeadersPatchIn 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 NewEndpointHeadersPatchIn(headers map[string]string) *EndpointHeadersPatchIn {
	this := EndpointHeadersPatchIn{}
	this.Headers = headers
	return &this
}

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

// GetHeaders returns the Headers field value
func (o *EndpointHeadersPatchIn) GetHeaders() map[string]string {
	if o == nil {
		var ret map[string]string
		return ret
	}

	return o.Headers
}

// GetHeadersOk returns a tuple with the Headers field value
// and a boolean to check if the value has been set.
func (o *EndpointHeadersPatchIn) GetHeadersOk() (*map[string]string, bool) {
	if o == nil  {
		return nil, false
	}
	return &o.Headers, true
}

// SetHeaders sets field value
func (o *EndpointHeadersPatchIn) SetHeaders(v map[string]string) {
	o.Headers = v
}

func (o EndpointHeadersPatchIn) MarshalJSON() ([]byte, error) {
	toSerialize := map[string]interface{}{}
	if true {
		toSerialize["headers"] = o.Headers
	}
	return json.Marshal(toSerialize)
}

type NullableEndpointHeadersPatchIn struct {
	value *EndpointHeadersPatchIn
	isSet bool
}

func (v NullableEndpointHeadersPatchIn) Get() *EndpointHeadersPatchIn {
	return v.value
}

func (v *NullableEndpointHeadersPatchIn) Set(val *EndpointHeadersPatchIn) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableEndpointHeadersPatchIn(val *EndpointHeadersPatchIn) *NullableEndpointHeadersPatchIn {
	return &NullableEndpointHeadersPatchIn{value: val, isSet: true}
}

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

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


