269 lines
7.8 KiB
Go
269 lines
7.8 KiB
Go
/*
|
|
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 SchemaSiteCustomCssHTMLResp type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaSiteCustomCssHTMLResp{}
|
|
|
|
// SchemaSiteCustomCssHTMLResp struct for SchemaSiteCustomCssHTMLResp
|
|
type SchemaSiteCustomCssHTMLResp struct {
|
|
CustomCss *string `json:"custom_css,omitempty"`
|
|
CustomFooter *string `json:"custom_footer,omitempty"`
|
|
CustomHead *string `json:"custom_head,omitempty"`
|
|
CustomHeader *string `json:"custom_header,omitempty"`
|
|
CustomSidebar *string `json:"custom_sidebar,omitempty"`
|
|
}
|
|
|
|
// NewSchemaSiteCustomCssHTMLResp instantiates a new SchemaSiteCustomCssHTMLResp 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 NewSchemaSiteCustomCssHTMLResp() *SchemaSiteCustomCssHTMLResp {
|
|
this := SchemaSiteCustomCssHTMLResp{}
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaSiteCustomCssHTMLRespWithDefaults instantiates a new SchemaSiteCustomCssHTMLResp 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 NewSchemaSiteCustomCssHTMLRespWithDefaults() *SchemaSiteCustomCssHTMLResp {
|
|
this := SchemaSiteCustomCssHTMLResp{}
|
|
return &this
|
|
}
|
|
|
|
// GetCustomCss returns the CustomCss field value if set, zero value otherwise.
|
|
func (o *SchemaSiteCustomCssHTMLResp) GetCustomCss() string {
|
|
if o == nil || IsNil(o.CustomCss) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CustomCss
|
|
}
|
|
|
|
// GetCustomCssOk returns a tuple with the CustomCss field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaSiteCustomCssHTMLResp) GetCustomCssOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CustomCss) {
|
|
return nil, false
|
|
}
|
|
return o.CustomCss, true
|
|
}
|
|
|
|
// HasCustomCss returns a boolean if a field has been set.
|
|
func (o *SchemaSiteCustomCssHTMLResp) HasCustomCss() bool {
|
|
if o != nil && !IsNil(o.CustomCss) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCustomCss gets a reference to the given string and assigns it to the CustomCss field.
|
|
func (o *SchemaSiteCustomCssHTMLResp) SetCustomCss(v string) {
|
|
o.CustomCss = &v
|
|
}
|
|
|
|
// GetCustomFooter returns the CustomFooter field value if set, zero value otherwise.
|
|
func (o *SchemaSiteCustomCssHTMLResp) GetCustomFooter() string {
|
|
if o == nil || IsNil(o.CustomFooter) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CustomFooter
|
|
}
|
|
|
|
// GetCustomFooterOk returns a tuple with the CustomFooter field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaSiteCustomCssHTMLResp) GetCustomFooterOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CustomFooter) {
|
|
return nil, false
|
|
}
|
|
return o.CustomFooter, true
|
|
}
|
|
|
|
// HasCustomFooter returns a boolean if a field has been set.
|
|
func (o *SchemaSiteCustomCssHTMLResp) HasCustomFooter() bool {
|
|
if o != nil && !IsNil(o.CustomFooter) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCustomFooter gets a reference to the given string and assigns it to the CustomFooter field.
|
|
func (o *SchemaSiteCustomCssHTMLResp) SetCustomFooter(v string) {
|
|
o.CustomFooter = &v
|
|
}
|
|
|
|
// GetCustomHead returns the CustomHead field value if set, zero value otherwise.
|
|
func (o *SchemaSiteCustomCssHTMLResp) GetCustomHead() string {
|
|
if o == nil || IsNil(o.CustomHead) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CustomHead
|
|
}
|
|
|
|
// GetCustomHeadOk returns a tuple with the CustomHead field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaSiteCustomCssHTMLResp) GetCustomHeadOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CustomHead) {
|
|
return nil, false
|
|
}
|
|
return o.CustomHead, true
|
|
}
|
|
|
|
// HasCustomHead returns a boolean if a field has been set.
|
|
func (o *SchemaSiteCustomCssHTMLResp) HasCustomHead() bool {
|
|
if o != nil && !IsNil(o.CustomHead) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCustomHead gets a reference to the given string and assigns it to the CustomHead field.
|
|
func (o *SchemaSiteCustomCssHTMLResp) SetCustomHead(v string) {
|
|
o.CustomHead = &v
|
|
}
|
|
|
|
// GetCustomHeader returns the CustomHeader field value if set, zero value otherwise.
|
|
func (o *SchemaSiteCustomCssHTMLResp) GetCustomHeader() string {
|
|
if o == nil || IsNil(o.CustomHeader) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CustomHeader
|
|
}
|
|
|
|
// GetCustomHeaderOk returns a tuple with the CustomHeader field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaSiteCustomCssHTMLResp) GetCustomHeaderOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CustomHeader) {
|
|
return nil, false
|
|
}
|
|
return o.CustomHeader, true
|
|
}
|
|
|
|
// HasCustomHeader returns a boolean if a field has been set.
|
|
func (o *SchemaSiteCustomCssHTMLResp) HasCustomHeader() bool {
|
|
if o != nil && !IsNil(o.CustomHeader) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCustomHeader gets a reference to the given string and assigns it to the CustomHeader field.
|
|
func (o *SchemaSiteCustomCssHTMLResp) SetCustomHeader(v string) {
|
|
o.CustomHeader = &v
|
|
}
|
|
|
|
// GetCustomSidebar returns the CustomSidebar field value if set, zero value otherwise.
|
|
func (o *SchemaSiteCustomCssHTMLResp) GetCustomSidebar() string {
|
|
if o == nil || IsNil(o.CustomSidebar) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CustomSidebar
|
|
}
|
|
|
|
// GetCustomSidebarOk returns a tuple with the CustomSidebar field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaSiteCustomCssHTMLResp) GetCustomSidebarOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CustomSidebar) {
|
|
return nil, false
|
|
}
|
|
return o.CustomSidebar, true
|
|
}
|
|
|
|
// HasCustomSidebar returns a boolean if a field has been set.
|
|
func (o *SchemaSiteCustomCssHTMLResp) HasCustomSidebar() bool {
|
|
if o != nil && !IsNil(o.CustomSidebar) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCustomSidebar gets a reference to the given string and assigns it to the CustomSidebar field.
|
|
func (o *SchemaSiteCustomCssHTMLResp) SetCustomSidebar(v string) {
|
|
o.CustomSidebar = &v
|
|
}
|
|
|
|
func (o SchemaSiteCustomCssHTMLResp) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaSiteCustomCssHTMLResp) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.CustomCss) {
|
|
toSerialize["custom_css"] = o.CustomCss
|
|
}
|
|
if !IsNil(o.CustomFooter) {
|
|
toSerialize["custom_footer"] = o.CustomFooter
|
|
}
|
|
if !IsNil(o.CustomHead) {
|
|
toSerialize["custom_head"] = o.CustomHead
|
|
}
|
|
if !IsNil(o.CustomHeader) {
|
|
toSerialize["custom_header"] = o.CustomHeader
|
|
}
|
|
if !IsNil(o.CustomSidebar) {
|
|
toSerialize["custom_sidebar"] = o.CustomSidebar
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableSchemaSiteCustomCssHTMLResp struct {
|
|
value *SchemaSiteCustomCssHTMLResp
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaSiteCustomCssHTMLResp) Get() *SchemaSiteCustomCssHTMLResp {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaSiteCustomCssHTMLResp) Set(val *SchemaSiteCustomCssHTMLResp) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaSiteCustomCssHTMLResp) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaSiteCustomCssHTMLResp) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaSiteCustomCssHTMLResp(val *SchemaSiteCustomCssHTMLResp) *NullableSchemaSiteCustomCssHTMLResp {
|
|
return &NullableSchemaSiteCustomCssHTMLResp{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaSiteCustomCssHTMLResp) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaSiteCustomCssHTMLResp) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|