233 lines
6.2 KiB
Go
233 lines
6.2 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 SchemaSiteBrandingResp type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaSiteBrandingResp{}
|
|
|
|
// SchemaSiteBrandingResp struct for SchemaSiteBrandingResp
|
|
type SchemaSiteBrandingResp struct {
|
|
Favicon *string `json:"favicon,omitempty"`
|
|
Logo *string `json:"logo,omitempty"`
|
|
MobileLogo *string `json:"mobile_logo,omitempty"`
|
|
SquareIcon *string `json:"square_icon,omitempty"`
|
|
}
|
|
|
|
// NewSchemaSiteBrandingResp instantiates a new SchemaSiteBrandingResp 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 NewSchemaSiteBrandingResp() *SchemaSiteBrandingResp {
|
|
this := SchemaSiteBrandingResp{}
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaSiteBrandingRespWithDefaults instantiates a new SchemaSiteBrandingResp 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 NewSchemaSiteBrandingRespWithDefaults() *SchemaSiteBrandingResp {
|
|
this := SchemaSiteBrandingResp{}
|
|
return &this
|
|
}
|
|
|
|
// GetFavicon returns the Favicon field value if set, zero value otherwise.
|
|
func (o *SchemaSiteBrandingResp) GetFavicon() string {
|
|
if o == nil || IsNil(o.Favicon) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Favicon
|
|
}
|
|
|
|
// GetFaviconOk returns a tuple with the Favicon field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaSiteBrandingResp) GetFaviconOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Favicon) {
|
|
return nil, false
|
|
}
|
|
return o.Favicon, true
|
|
}
|
|
|
|
// HasFavicon returns a boolean if a field has been set.
|
|
func (o *SchemaSiteBrandingResp) HasFavicon() bool {
|
|
if o != nil && !IsNil(o.Favicon) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFavicon gets a reference to the given string and assigns it to the Favicon field.
|
|
func (o *SchemaSiteBrandingResp) SetFavicon(v string) {
|
|
o.Favicon = &v
|
|
}
|
|
|
|
// GetLogo returns the Logo field value if set, zero value otherwise.
|
|
func (o *SchemaSiteBrandingResp) GetLogo() string {
|
|
if o == nil || IsNil(o.Logo) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Logo
|
|
}
|
|
|
|
// GetLogoOk returns a tuple with the Logo field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaSiteBrandingResp) GetLogoOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Logo) {
|
|
return nil, false
|
|
}
|
|
return o.Logo, true
|
|
}
|
|
|
|
// HasLogo returns a boolean if a field has been set.
|
|
func (o *SchemaSiteBrandingResp) HasLogo() bool {
|
|
if o != nil && !IsNil(o.Logo) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLogo gets a reference to the given string and assigns it to the Logo field.
|
|
func (o *SchemaSiteBrandingResp) SetLogo(v string) {
|
|
o.Logo = &v
|
|
}
|
|
|
|
// GetMobileLogo returns the MobileLogo field value if set, zero value otherwise.
|
|
func (o *SchemaSiteBrandingResp) GetMobileLogo() string {
|
|
if o == nil || IsNil(o.MobileLogo) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.MobileLogo
|
|
}
|
|
|
|
// GetMobileLogoOk returns a tuple with the MobileLogo field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaSiteBrandingResp) GetMobileLogoOk() (*string, bool) {
|
|
if o == nil || IsNil(o.MobileLogo) {
|
|
return nil, false
|
|
}
|
|
return o.MobileLogo, true
|
|
}
|
|
|
|
// HasMobileLogo returns a boolean if a field has been set.
|
|
func (o *SchemaSiteBrandingResp) HasMobileLogo() bool {
|
|
if o != nil && !IsNil(o.MobileLogo) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMobileLogo gets a reference to the given string and assigns it to the MobileLogo field.
|
|
func (o *SchemaSiteBrandingResp) SetMobileLogo(v string) {
|
|
o.MobileLogo = &v
|
|
}
|
|
|
|
// GetSquareIcon returns the SquareIcon field value if set, zero value otherwise.
|
|
func (o *SchemaSiteBrandingResp) GetSquareIcon() string {
|
|
if o == nil || IsNil(o.SquareIcon) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SquareIcon
|
|
}
|
|
|
|
// GetSquareIconOk returns a tuple with the SquareIcon field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaSiteBrandingResp) GetSquareIconOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SquareIcon) {
|
|
return nil, false
|
|
}
|
|
return o.SquareIcon, true
|
|
}
|
|
|
|
// HasSquareIcon returns a boolean if a field has been set.
|
|
func (o *SchemaSiteBrandingResp) HasSquareIcon() bool {
|
|
if o != nil && !IsNil(o.SquareIcon) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSquareIcon gets a reference to the given string and assigns it to the SquareIcon field.
|
|
func (o *SchemaSiteBrandingResp) SetSquareIcon(v string) {
|
|
o.SquareIcon = &v
|
|
}
|
|
|
|
func (o SchemaSiteBrandingResp) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaSiteBrandingResp) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Favicon) {
|
|
toSerialize["favicon"] = o.Favicon
|
|
}
|
|
if !IsNil(o.Logo) {
|
|
toSerialize["logo"] = o.Logo
|
|
}
|
|
if !IsNil(o.MobileLogo) {
|
|
toSerialize["mobile_logo"] = o.MobileLogo
|
|
}
|
|
if !IsNil(o.SquareIcon) {
|
|
toSerialize["square_icon"] = o.SquareIcon
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableSchemaSiteBrandingResp struct {
|
|
value *SchemaSiteBrandingResp
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaSiteBrandingResp) Get() *SchemaSiteBrandingResp {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaSiteBrandingResp) Set(val *SchemaSiteBrandingResp) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaSiteBrandingResp) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaSiteBrandingResp) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaSiteBrandingResp(val *SchemaSiteBrandingResp) *NullableSchemaSiteBrandingResp {
|
|
return &NullableSchemaSiteBrandingResp{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaSiteBrandingResp) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaSiteBrandingResp) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|