/* 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 SchemaAvatarInfo type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaAvatarInfo{} // SchemaAvatarInfo struct for SchemaAvatarInfo type SchemaAvatarInfo struct { Custom *string `json:"custom,omitempty"` Gravatar *string `json:"gravatar,omitempty"` Type *string `json:"type,omitempty"` } // NewSchemaAvatarInfo instantiates a new SchemaAvatarInfo 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 NewSchemaAvatarInfo() *SchemaAvatarInfo { this := SchemaAvatarInfo{} return &this } // NewSchemaAvatarInfoWithDefaults instantiates a new SchemaAvatarInfo 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 NewSchemaAvatarInfoWithDefaults() *SchemaAvatarInfo { this := SchemaAvatarInfo{} return &this } // GetCustom returns the Custom field value if set, zero value otherwise. func (o *SchemaAvatarInfo) GetCustom() string { if o == nil || IsNil(o.Custom) { var ret string return ret } return *o.Custom } // GetCustomOk returns a tuple with the Custom field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaAvatarInfo) GetCustomOk() (*string, bool) { if o == nil || IsNil(o.Custom) { return nil, false } return o.Custom, true } // HasCustom returns a boolean if a field has been set. func (o *SchemaAvatarInfo) HasCustom() bool { if o != nil && !IsNil(o.Custom) { return true } return false } // SetCustom gets a reference to the given string and assigns it to the Custom field. func (o *SchemaAvatarInfo) SetCustom(v string) { o.Custom = &v } // GetGravatar returns the Gravatar field value if set, zero value otherwise. func (o *SchemaAvatarInfo) GetGravatar() string { if o == nil || IsNil(o.Gravatar) { var ret string return ret } return *o.Gravatar } // GetGravatarOk returns a tuple with the Gravatar field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaAvatarInfo) GetGravatarOk() (*string, bool) { if o == nil || IsNil(o.Gravatar) { return nil, false } return o.Gravatar, true } // HasGravatar returns a boolean if a field has been set. func (o *SchemaAvatarInfo) HasGravatar() bool { if o != nil && !IsNil(o.Gravatar) { return true } return false } // SetGravatar gets a reference to the given string and assigns it to the Gravatar field. func (o *SchemaAvatarInfo) SetGravatar(v string) { o.Gravatar = &v } // GetType returns the Type field value if set, zero value otherwise. func (o *SchemaAvatarInfo) GetType() string { if o == nil || IsNil(o.Type) { var ret string return ret } return *o.Type } // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaAvatarInfo) GetTypeOk() (*string, bool) { if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true } // HasType returns a boolean if a field has been set. func (o *SchemaAvatarInfo) HasType() bool { if o != nil && !IsNil(o.Type) { return true } return false } // SetType gets a reference to the given string and assigns it to the Type field. func (o *SchemaAvatarInfo) SetType(v string) { o.Type = &v } func (o SchemaAvatarInfo) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaAvatarInfo) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Custom) { toSerialize["custom"] = o.Custom } if !IsNil(o.Gravatar) { toSerialize["gravatar"] = o.Gravatar } if !IsNil(o.Type) { toSerialize["type"] = o.Type } return toSerialize, nil } type NullableSchemaAvatarInfo struct { value *SchemaAvatarInfo isSet bool } func (v NullableSchemaAvatarInfo) Get() *SchemaAvatarInfo { return v.value } func (v *NullableSchemaAvatarInfo) Set(val *SchemaAvatarInfo) { v.value = val v.isSet = true } func (v NullableSchemaAvatarInfo) IsSet() bool { return v.isSet } func (v *NullableSchemaAvatarInfo) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaAvatarInfo(val *SchemaAvatarInfo) *NullableSchemaAvatarInfo { return &NullableSchemaAvatarInfo{value: val, isSet: true} } func (v NullableSchemaAvatarInfo) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaAvatarInfo) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }