/*
 * 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"
)

// CustomThemeOverride struct for CustomThemeOverride
type CustomThemeOverride struct {
	BorderRadius *BorderRadiusConfig `json:"borderRadius,omitempty"`
	FontSize *FontSizeConfig `json:"fontSize,omitempty"`
}

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

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

// GetBorderRadius returns the BorderRadius field value if set, zero value otherwise.
func (o *CustomThemeOverride) GetBorderRadius() BorderRadiusConfig {
	if o == nil || o.BorderRadius == nil {
		var ret BorderRadiusConfig
		return ret
	}
	return *o.BorderRadius
}

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

// HasBorderRadius returns a boolean if a field has been set.
func (o *CustomThemeOverride) HasBorderRadius() bool {
	if o != nil && o.BorderRadius != nil {
		return true
	}

	return false
}

// SetBorderRadius gets a reference to the given BorderRadiusConfig and assigns it to the BorderRadius field.
func (o *CustomThemeOverride) SetBorderRadius(v BorderRadiusConfig) {
	o.BorderRadius = &v
}

// GetFontSize returns the FontSize field value if set, zero value otherwise.
func (o *CustomThemeOverride) GetFontSize() FontSizeConfig {
	if o == nil || o.FontSize == nil {
		var ret FontSizeConfig
		return ret
	}
	return *o.FontSize
}

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

// HasFontSize returns a boolean if a field has been set.
func (o *CustomThemeOverride) HasFontSize() bool {
	if o != nil && o.FontSize != nil {
		return true
	}

	return false
}

// SetFontSize gets a reference to the given FontSizeConfig and assigns it to the FontSize field.
func (o *CustomThemeOverride) SetFontSize(v FontSizeConfig) {
	o.FontSize = &v
}

func (o CustomThemeOverride) MarshalJSON() ([]byte, error) {
	toSerialize := map[string]interface{}{}
	if o.BorderRadius != nil {
		toSerialize["borderRadius"] = o.BorderRadius
	}
	if o.FontSize != nil {
		toSerialize["fontSize"] = o.FontSize
	}
	return json.Marshal(toSerialize)
}

type NullableCustomThemeOverride struct {
	value *CustomThemeOverride
	isSet bool
}

func (v NullableCustomThemeOverride) Get() *CustomThemeOverride {
	return v.value
}

func (v *NullableCustomThemeOverride) Set(val *CustomThemeOverride) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableCustomThemeOverride(val *CustomThemeOverride) *NullableCustomThemeOverride {
	return &NullableCustomThemeOverride{value: val, isSet: true}
}

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

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


