/* 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 SchemaSiteInterfaceReq type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaSiteInterfaceReq{} // SchemaSiteInterfaceReq struct for SchemaSiteInterfaceReq type SchemaSiteInterfaceReq struct { DefaultAvatar string `json:"default_avatar"` Language string `json:"language"` TimeZone string `json:"time_zone"` } // NewSchemaSiteInterfaceReq instantiates a new SchemaSiteInterfaceReq 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 NewSchemaSiteInterfaceReq(defaultAvatar string, language string, timeZone string) *SchemaSiteInterfaceReq { this := SchemaSiteInterfaceReq{} this.DefaultAvatar = defaultAvatar this.Language = language this.TimeZone = timeZone return &this } // NewSchemaSiteInterfaceReqWithDefaults instantiates a new SchemaSiteInterfaceReq 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 NewSchemaSiteInterfaceReqWithDefaults() *SchemaSiteInterfaceReq { this := SchemaSiteInterfaceReq{} return &this } // GetDefaultAvatar returns the DefaultAvatar field value func (o *SchemaSiteInterfaceReq) GetDefaultAvatar() string { if o == nil { var ret string return ret } return o.DefaultAvatar } // GetDefaultAvatarOk returns a tuple with the DefaultAvatar field value // and a boolean to check if the value has been set. func (o *SchemaSiteInterfaceReq) GetDefaultAvatarOk() (*string, bool) { if o == nil { return nil, false } return &o.DefaultAvatar, true } // SetDefaultAvatar sets field value func (o *SchemaSiteInterfaceReq) SetDefaultAvatar(v string) { o.DefaultAvatar = v } // GetLanguage returns the Language field value func (o *SchemaSiteInterfaceReq) GetLanguage() string { if o == nil { var ret string return ret } return o.Language } // GetLanguageOk returns a tuple with the Language field value // and a boolean to check if the value has been set. func (o *SchemaSiteInterfaceReq) GetLanguageOk() (*string, bool) { if o == nil { return nil, false } return &o.Language, true } // SetLanguage sets field value func (o *SchemaSiteInterfaceReq) SetLanguage(v string) { o.Language = v } // GetTimeZone returns the TimeZone field value func (o *SchemaSiteInterfaceReq) GetTimeZone() string { if o == nil { var ret string return ret } return o.TimeZone } // GetTimeZoneOk returns a tuple with the TimeZone field value // and a boolean to check if the value has been set. func (o *SchemaSiteInterfaceReq) GetTimeZoneOk() (*string, bool) { if o == nil { return nil, false } return &o.TimeZone, true } // SetTimeZone sets field value func (o *SchemaSiteInterfaceReq) SetTimeZone(v string) { o.TimeZone = v } func (o SchemaSiteInterfaceReq) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaSiteInterfaceReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["default_avatar"] = o.DefaultAvatar toSerialize["language"] = o.Language toSerialize["time_zone"] = o.TimeZone return toSerialize, nil } type NullableSchemaSiteInterfaceReq struct { value *SchemaSiteInterfaceReq isSet bool } func (v NullableSchemaSiteInterfaceReq) Get() *SchemaSiteInterfaceReq { return v.value } func (v *NullableSchemaSiteInterfaceReq) Set(val *SchemaSiteInterfaceReq) { v.value = val v.isSet = true } func (v NullableSchemaSiteInterfaceReq) IsSet() bool { return v.isSet } func (v *NullableSchemaSiteInterfaceReq) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaSiteInterfaceReq(val *SchemaSiteInterfaceReq) *NullableSchemaSiteInterfaceReq { return &NullableSchemaSiteInterfaceReq{value: val, isSet: true} } func (v NullableSchemaSiteInterfaceReq) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaSiteInterfaceReq) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }