Files
openapi-go-answer/model_schema_site_interface_req.go
2023-09-26 16:20:01 +08:00

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 SchemaSiteInterfaceReq type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SchemaSiteInterfaceReq{}
// SchemaSiteInterfaceReq struct for SchemaSiteInterfaceReq
type SchemaSiteInterfaceReq struct {
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(language string, timeZone string) *SchemaSiteInterfaceReq {
this := SchemaSiteInterfaceReq{}
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
}
// 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["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)
}