/* answer answer api API version: v0.0.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package openapi import ( "encoding/json" ) // checks if the SchemaSiteThemeResp type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaSiteThemeResp{} // SchemaSiteThemeResp struct for SchemaSiteThemeResp type SchemaSiteThemeResp struct { Theme *string `json:"theme,omitempty"` ThemeConfig map[string]interface{} `json:"theme_config,omitempty"` ThemeOptions []SchemaThemeOption `json:"theme_options,omitempty"` } // NewSchemaSiteThemeResp instantiates a new SchemaSiteThemeResp 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 NewSchemaSiteThemeResp() *SchemaSiteThemeResp { this := SchemaSiteThemeResp{} return &this } // NewSchemaSiteThemeRespWithDefaults instantiates a new SchemaSiteThemeResp 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 NewSchemaSiteThemeRespWithDefaults() *SchemaSiteThemeResp { this := SchemaSiteThemeResp{} return &this } // GetTheme returns the Theme field value if set, zero value otherwise. func (o *SchemaSiteThemeResp) GetTheme() string { if o == nil || IsNil(o.Theme) { var ret string return ret } return *o.Theme } // GetThemeOk returns a tuple with the Theme field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaSiteThemeResp) GetThemeOk() (*string, bool) { if o == nil || IsNil(o.Theme) { return nil, false } return o.Theme, true } // HasTheme returns a boolean if a field has been set. func (o *SchemaSiteThemeResp) HasTheme() bool { if o != nil && !IsNil(o.Theme) { return true } return false } // SetTheme gets a reference to the given string and assigns it to the Theme field. func (o *SchemaSiteThemeResp) SetTheme(v string) { o.Theme = &v } // GetThemeConfig returns the ThemeConfig field value if set, zero value otherwise. func (o *SchemaSiteThemeResp) GetThemeConfig() map[string]interface{} { if o == nil || IsNil(o.ThemeConfig) { var ret map[string]interface{} return ret } return o.ThemeConfig } // GetThemeConfigOk returns a tuple with the ThemeConfig field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaSiteThemeResp) GetThemeConfigOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.ThemeConfig) { return map[string]interface{}{}, false } return o.ThemeConfig, true } // HasThemeConfig returns a boolean if a field has been set. func (o *SchemaSiteThemeResp) HasThemeConfig() bool { if o != nil && !IsNil(o.ThemeConfig) { return true } return false } // SetThemeConfig gets a reference to the given map[string]interface{} and assigns it to the ThemeConfig field. func (o *SchemaSiteThemeResp) SetThemeConfig(v map[string]interface{}) { o.ThemeConfig = v } // GetThemeOptions returns the ThemeOptions field value if set, zero value otherwise. func (o *SchemaSiteThemeResp) GetThemeOptions() []SchemaThemeOption { if o == nil || IsNil(o.ThemeOptions) { var ret []SchemaThemeOption return ret } return o.ThemeOptions } // GetThemeOptionsOk returns a tuple with the ThemeOptions field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaSiteThemeResp) GetThemeOptionsOk() ([]SchemaThemeOption, bool) { if o == nil || IsNil(o.ThemeOptions) { return nil, false } return o.ThemeOptions, true } // HasThemeOptions returns a boolean if a field has been set. func (o *SchemaSiteThemeResp) HasThemeOptions() bool { if o != nil && !IsNil(o.ThemeOptions) { return true } return false } // SetThemeOptions gets a reference to the given []SchemaThemeOption and assigns it to the ThemeOptions field. func (o *SchemaSiteThemeResp) SetThemeOptions(v []SchemaThemeOption) { o.ThemeOptions = v } func (o SchemaSiteThemeResp) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaSiteThemeResp) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Theme) { toSerialize["theme"] = o.Theme } if !IsNil(o.ThemeConfig) { toSerialize["theme_config"] = o.ThemeConfig } if !IsNil(o.ThemeOptions) { toSerialize["theme_options"] = o.ThemeOptions } return toSerialize, nil } type NullableSchemaSiteThemeResp struct { value *SchemaSiteThemeResp isSet bool } func (v NullableSchemaSiteThemeResp) Get() *SchemaSiteThemeResp { return v.value } func (v *NullableSchemaSiteThemeResp) Set(val *SchemaSiteThemeResp) { v.value = val v.isSet = true } func (v NullableSchemaSiteThemeResp) IsSet() bool { return v.isSet } func (v *NullableSchemaSiteThemeResp) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaSiteThemeResp(val *SchemaSiteThemeResp) *NullableSchemaSiteThemeResp { return &NullableSchemaSiteThemeResp{value: val, isSet: true} } func (v NullableSchemaSiteThemeResp) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaSiteThemeResp) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }