Files
sdk/model_trust_faq_list.go

155 lines
3.8 KiB
Go

/*
Hanzo Cloud API
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package hanzoai
import (
"encoding/json"
)
// checks if the TrustFaqList type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TrustFaqList{}
// TrustFaqList struct for TrustFaqList
type TrustFaqList struct {
// Faq is the questions and their answers.
Faq []interface{} `json:"faq,omitempty"`
AdditionalProperties map[string]interface{}
}
type _TrustFaqList TrustFaqList
// NewTrustFaqList instantiates a new TrustFaqList 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 NewTrustFaqList() *TrustFaqList {
this := TrustFaqList{}
return &this
}
// NewTrustFaqListWithDefaults instantiates a new TrustFaqList 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 NewTrustFaqListWithDefaults() *TrustFaqList {
this := TrustFaqList{}
return &this
}
// GetFaq returns the Faq field value if set, zero value otherwise.
func (o *TrustFaqList) GetFaq() []interface{} {
if o == nil || IsNil(o.Faq) {
var ret []interface{}
return ret
}
return o.Faq
}
// GetFaqOk returns a tuple with the Faq field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrustFaqList) GetFaqOk() ([]interface{}, bool) {
if o == nil || IsNil(o.Faq) {
return nil, false
}
return o.Faq, true
}
// HasFaq returns a boolean if a field has been set.
func (o *TrustFaqList) HasFaq() bool {
if o != nil && !IsNil(o.Faq) {
return true
}
return false
}
// SetFaq gets a reference to the given []interface{} and assigns it to the Faq field.
func (o *TrustFaqList) SetFaq(v []interface{}) {
o.Faq = v
}
func (o TrustFaqList) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o TrustFaqList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Faq) {
toSerialize["faq"] = o.Faq
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *TrustFaqList) UnmarshalJSON(data []byte) (err error) {
varTrustFaqList := _TrustFaqList{}
err = json.Unmarshal(data, &varTrustFaqList)
if err != nil {
return err
}
*o = TrustFaqList(varTrustFaqList)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "faq")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableTrustFaqList struct {
value *TrustFaqList
isSet bool
}
func (v NullableTrustFaqList) Get() *TrustFaqList {
return v.value
}
func (v *NullableTrustFaqList) Set(val *TrustFaqList) {
v.value = val
v.isSet = true
}
func (v NullableTrustFaqList) IsSet() bool {
return v.isSet
}
func (v *NullableTrustFaqList) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTrustFaqList(val *TrustFaqList) *NullableTrustFaqList {
return &NullableTrustFaqList{value: val, isSet: true}
}
func (v NullableTrustFaqList) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTrustFaqList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}