143 lines
3.7 KiB
Go
143 lines
3.7 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 SchemaSiteInterfaceResp type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaSiteInterfaceResp{}
|
|
|
|
// SchemaSiteInterfaceResp struct for SchemaSiteInterfaceResp
|
|
type SchemaSiteInterfaceResp struct {
|
|
Language string `json:"language"`
|
|
TimeZone string `json:"time_zone"`
|
|
}
|
|
|
|
// NewSchemaSiteInterfaceResp instantiates a new SchemaSiteInterfaceResp 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 NewSchemaSiteInterfaceResp(language string, timeZone string) *SchemaSiteInterfaceResp {
|
|
this := SchemaSiteInterfaceResp{}
|
|
this.Language = language
|
|
this.TimeZone = timeZone
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaSiteInterfaceRespWithDefaults instantiates a new SchemaSiteInterfaceResp 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 NewSchemaSiteInterfaceRespWithDefaults() *SchemaSiteInterfaceResp {
|
|
this := SchemaSiteInterfaceResp{}
|
|
return &this
|
|
}
|
|
|
|
// GetLanguage returns the Language field value
|
|
func (o *SchemaSiteInterfaceResp) 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 *SchemaSiteInterfaceResp) GetLanguageOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Language, true
|
|
}
|
|
|
|
// SetLanguage sets field value
|
|
func (o *SchemaSiteInterfaceResp) SetLanguage(v string) {
|
|
o.Language = v
|
|
}
|
|
|
|
// GetTimeZone returns the TimeZone field value
|
|
func (o *SchemaSiteInterfaceResp) 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 *SchemaSiteInterfaceResp) GetTimeZoneOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.TimeZone, true
|
|
}
|
|
|
|
// SetTimeZone sets field value
|
|
func (o *SchemaSiteInterfaceResp) SetTimeZone(v string) {
|
|
o.TimeZone = v
|
|
}
|
|
|
|
func (o SchemaSiteInterfaceResp) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaSiteInterfaceResp) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
toSerialize["language"] = o.Language
|
|
toSerialize["time_zone"] = o.TimeZone
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableSchemaSiteInterfaceResp struct {
|
|
value *SchemaSiteInterfaceResp
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaSiteInterfaceResp) Get() *SchemaSiteInterfaceResp {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaSiteInterfaceResp) Set(val *SchemaSiteInterfaceResp) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaSiteInterfaceResp) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaSiteInterfaceResp) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaSiteInterfaceResp(val *SchemaSiteInterfaceResp) *NullableSchemaSiteInterfaceResp {
|
|
return &NullableSchemaSiteInterfaceResp{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaSiteInterfaceResp) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaSiteInterfaceResp) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|