/* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package answer_sdk import ( "encoding/json" ) // checks if the SchemaSiteInfoResp type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaSiteInfoResp{} // SchemaSiteInfoResp struct for SchemaSiteInfoResp type SchemaSiteInfoResp struct { Branding *SchemaSiteBrandingResp `json:"branding,omitempty"` CustomCssHtml *SchemaSiteCustomCssHTMLResp `json:"custom_css_html,omitempty"` General *SchemaSiteGeneralResp `json:"general,omitempty"` Interface *SchemaSiteInterfaceResp `json:"interface,omitempty"` Login *SchemaSiteLoginResp `json:"login,omitempty"` Revision *string `json:"revision,omitempty"` SiteSeo *SchemaSiteSeoResp `json:"site_seo,omitempty"` SiteUsers *SchemaSiteUsersResp `json:"site_users,omitempty"` Theme *SchemaSiteThemeResp `json:"theme,omitempty"` Version *string `json:"version,omitempty"` } // NewSchemaSiteInfoResp instantiates a new SchemaSiteInfoResp 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 NewSchemaSiteInfoResp() *SchemaSiteInfoResp { this := SchemaSiteInfoResp{} return &this } // NewSchemaSiteInfoRespWithDefaults instantiates a new SchemaSiteInfoResp 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 NewSchemaSiteInfoRespWithDefaults() *SchemaSiteInfoResp { this := SchemaSiteInfoResp{} return &this } // GetBranding returns the Branding field value if set, zero value otherwise. func (o *SchemaSiteInfoResp) GetBranding() SchemaSiteBrandingResp { if o == nil || IsNil(o.Branding) { var ret SchemaSiteBrandingResp return ret } return *o.Branding } // GetBrandingOk returns a tuple with the Branding field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaSiteInfoResp) GetBrandingOk() (*SchemaSiteBrandingResp, bool) { if o == nil || IsNil(o.Branding) { return nil, false } return o.Branding, true } // HasBranding returns a boolean if a field has been set. func (o *SchemaSiteInfoResp) HasBranding() bool { if o != nil && !IsNil(o.Branding) { return true } return false } // SetBranding gets a reference to the given SchemaSiteBrandingResp and assigns it to the Branding field. func (o *SchemaSiteInfoResp) SetBranding(v SchemaSiteBrandingResp) { o.Branding = &v } // GetCustomCssHtml returns the CustomCssHtml field value if set, zero value otherwise. func (o *SchemaSiteInfoResp) GetCustomCssHtml() SchemaSiteCustomCssHTMLResp { if o == nil || IsNil(o.CustomCssHtml) { var ret SchemaSiteCustomCssHTMLResp return ret } return *o.CustomCssHtml } // GetCustomCssHtmlOk returns a tuple with the CustomCssHtml field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaSiteInfoResp) GetCustomCssHtmlOk() (*SchemaSiteCustomCssHTMLResp, bool) { if o == nil || IsNil(o.CustomCssHtml) { return nil, false } return o.CustomCssHtml, true } // HasCustomCssHtml returns a boolean if a field has been set. func (o *SchemaSiteInfoResp) HasCustomCssHtml() bool { if o != nil && !IsNil(o.CustomCssHtml) { return true } return false } // SetCustomCssHtml gets a reference to the given SchemaSiteCustomCssHTMLResp and assigns it to the CustomCssHtml field. func (o *SchemaSiteInfoResp) SetCustomCssHtml(v SchemaSiteCustomCssHTMLResp) { o.CustomCssHtml = &v } // GetGeneral returns the General field value if set, zero value otherwise. func (o *SchemaSiteInfoResp) GetGeneral() SchemaSiteGeneralResp { if o == nil || IsNil(o.General) { var ret SchemaSiteGeneralResp return ret } return *o.General } // GetGeneralOk returns a tuple with the General field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaSiteInfoResp) GetGeneralOk() (*SchemaSiteGeneralResp, bool) { if o == nil || IsNil(o.General) { return nil, false } return o.General, true } // HasGeneral returns a boolean if a field has been set. func (o *SchemaSiteInfoResp) HasGeneral() bool { if o != nil && !IsNil(o.General) { return true } return false } // SetGeneral gets a reference to the given SchemaSiteGeneralResp and assigns it to the General field. func (o *SchemaSiteInfoResp) SetGeneral(v SchemaSiteGeneralResp) { o.General = &v } // GetInterface returns the Interface field value if set, zero value otherwise. func (o *SchemaSiteInfoResp) GetInterface() SchemaSiteInterfaceResp { if o == nil || IsNil(o.Interface) { var ret SchemaSiteInterfaceResp return ret } return *o.Interface } // GetInterfaceOk returns a tuple with the Interface field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaSiteInfoResp) GetInterfaceOk() (*SchemaSiteInterfaceResp, bool) { if o == nil || IsNil(o.Interface) { return nil, false } return o.Interface, true } // HasInterface returns a boolean if a field has been set. func (o *SchemaSiteInfoResp) HasInterface() bool { if o != nil && !IsNil(o.Interface) { return true } return false } // SetInterface gets a reference to the given SchemaSiteInterfaceResp and assigns it to the Interface field. func (o *SchemaSiteInfoResp) SetInterface(v SchemaSiteInterfaceResp) { o.Interface = &v } // GetLogin returns the Login field value if set, zero value otherwise. func (o *SchemaSiteInfoResp) GetLogin() SchemaSiteLoginResp { if o == nil || IsNil(o.Login) { var ret SchemaSiteLoginResp return ret } return *o.Login } // GetLoginOk returns a tuple with the Login field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaSiteInfoResp) GetLoginOk() (*SchemaSiteLoginResp, bool) { if o == nil || IsNil(o.Login) { return nil, false } return o.Login, true } // HasLogin returns a boolean if a field has been set. func (o *SchemaSiteInfoResp) HasLogin() bool { if o != nil && !IsNil(o.Login) { return true } return false } // SetLogin gets a reference to the given SchemaSiteLoginResp and assigns it to the Login field. func (o *SchemaSiteInfoResp) SetLogin(v SchemaSiteLoginResp) { o.Login = &v } // GetRevision returns the Revision field value if set, zero value otherwise. func (o *SchemaSiteInfoResp) GetRevision() string { if o == nil || IsNil(o.Revision) { var ret string return ret } return *o.Revision } // GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaSiteInfoResp) GetRevisionOk() (*string, bool) { if o == nil || IsNil(o.Revision) { return nil, false } return o.Revision, true } // HasRevision returns a boolean if a field has been set. func (o *SchemaSiteInfoResp) HasRevision() bool { if o != nil && !IsNil(o.Revision) { return true } return false } // SetRevision gets a reference to the given string and assigns it to the Revision field. func (o *SchemaSiteInfoResp) SetRevision(v string) { o.Revision = &v } // GetSiteSeo returns the SiteSeo field value if set, zero value otherwise. func (o *SchemaSiteInfoResp) GetSiteSeo() SchemaSiteSeoResp { if o == nil || IsNil(o.SiteSeo) { var ret SchemaSiteSeoResp return ret } return *o.SiteSeo } // GetSiteSeoOk returns a tuple with the SiteSeo field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaSiteInfoResp) GetSiteSeoOk() (*SchemaSiteSeoResp, bool) { if o == nil || IsNil(o.SiteSeo) { return nil, false } return o.SiteSeo, true } // HasSiteSeo returns a boolean if a field has been set. func (o *SchemaSiteInfoResp) HasSiteSeo() bool { if o != nil && !IsNil(o.SiteSeo) { return true } return false } // SetSiteSeo gets a reference to the given SchemaSiteSeoResp and assigns it to the SiteSeo field. func (o *SchemaSiteInfoResp) SetSiteSeo(v SchemaSiteSeoResp) { o.SiteSeo = &v } // GetSiteUsers returns the SiteUsers field value if set, zero value otherwise. func (o *SchemaSiteInfoResp) GetSiteUsers() SchemaSiteUsersResp { if o == nil || IsNil(o.SiteUsers) { var ret SchemaSiteUsersResp return ret } return *o.SiteUsers } // GetSiteUsersOk returns a tuple with the SiteUsers field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaSiteInfoResp) GetSiteUsersOk() (*SchemaSiteUsersResp, bool) { if o == nil || IsNil(o.SiteUsers) { return nil, false } return o.SiteUsers, true } // HasSiteUsers returns a boolean if a field has been set. func (o *SchemaSiteInfoResp) HasSiteUsers() bool { if o != nil && !IsNil(o.SiteUsers) { return true } return false } // SetSiteUsers gets a reference to the given SchemaSiteUsersResp and assigns it to the SiteUsers field. func (o *SchemaSiteInfoResp) SetSiteUsers(v SchemaSiteUsersResp) { o.SiteUsers = &v } // GetTheme returns the Theme field value if set, zero value otherwise. func (o *SchemaSiteInfoResp) GetTheme() SchemaSiteThemeResp { if o == nil || IsNil(o.Theme) { var ret SchemaSiteThemeResp 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 *SchemaSiteInfoResp) GetThemeOk() (*SchemaSiteThemeResp, 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 *SchemaSiteInfoResp) HasTheme() bool { if o != nil && !IsNil(o.Theme) { return true } return false } // SetTheme gets a reference to the given SchemaSiteThemeResp and assigns it to the Theme field. func (o *SchemaSiteInfoResp) SetTheme(v SchemaSiteThemeResp) { o.Theme = &v } // GetVersion returns the Version field value if set, zero value otherwise. func (o *SchemaSiteInfoResp) GetVersion() string { if o == nil || IsNil(o.Version) { var ret string return ret } return *o.Version } // GetVersionOk returns a tuple with the Version field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaSiteInfoResp) GetVersionOk() (*string, bool) { if o == nil || IsNil(o.Version) { return nil, false } return o.Version, true } // HasVersion returns a boolean if a field has been set. func (o *SchemaSiteInfoResp) HasVersion() bool { if o != nil && !IsNil(o.Version) { return true } return false } // SetVersion gets a reference to the given string and assigns it to the Version field. func (o *SchemaSiteInfoResp) SetVersion(v string) { o.Version = &v } func (o SchemaSiteInfoResp) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaSiteInfoResp) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Branding) { toSerialize["branding"] = o.Branding } if !IsNil(o.CustomCssHtml) { toSerialize["custom_css_html"] = o.CustomCssHtml } if !IsNil(o.General) { toSerialize["general"] = o.General } if !IsNil(o.Interface) { toSerialize["interface"] = o.Interface } if !IsNil(o.Login) { toSerialize["login"] = o.Login } if !IsNil(o.Revision) { toSerialize["revision"] = o.Revision } if !IsNil(o.SiteSeo) { toSerialize["site_seo"] = o.SiteSeo } if !IsNil(o.SiteUsers) { toSerialize["site_users"] = o.SiteUsers } if !IsNil(o.Theme) { toSerialize["theme"] = o.Theme } if !IsNil(o.Version) { toSerialize["version"] = o.Version } return toSerialize, nil } type NullableSchemaSiteInfoResp struct { value *SchemaSiteInfoResp isSet bool } func (v NullableSchemaSiteInfoResp) Get() *SchemaSiteInfoResp { return v.value } func (v *NullableSchemaSiteInfoResp) Set(val *SchemaSiteInfoResp) { v.value = val v.isSet = true } func (v NullableSchemaSiteInfoResp) IsSet() bool { return v.isSet } func (v *NullableSchemaSiteInfoResp) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaSiteInfoResp(val *SchemaSiteInfoResp) *NullableSchemaSiteInfoResp { return &NullableSchemaSiteInfoResp{value: val, isSet: true} } func (v NullableSchemaSiteInfoResp) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaSiteInfoResp) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }