197 lines
5.4 KiB
Go
197 lines
5.4 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 openapi
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the SchemaUpdateInfoRequestAvatar type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaUpdateInfoRequestAvatar{}
|
|
|
|
// SchemaUpdateInfoRequestAvatar avatar
|
|
type SchemaUpdateInfoRequestAvatar struct {
|
|
Custom *string `json:"custom,omitempty"`
|
|
Gravatar *string `json:"gravatar,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
}
|
|
|
|
// NewSchemaUpdateInfoRequestAvatar instantiates a new SchemaUpdateInfoRequestAvatar 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 NewSchemaUpdateInfoRequestAvatar() *SchemaUpdateInfoRequestAvatar {
|
|
this := SchemaUpdateInfoRequestAvatar{}
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaUpdateInfoRequestAvatarWithDefaults instantiates a new SchemaUpdateInfoRequestAvatar 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 NewSchemaUpdateInfoRequestAvatarWithDefaults() *SchemaUpdateInfoRequestAvatar {
|
|
this := SchemaUpdateInfoRequestAvatar{}
|
|
return &this
|
|
}
|
|
|
|
// GetCustom returns the Custom field value if set, zero value otherwise.
|
|
func (o *SchemaUpdateInfoRequestAvatar) 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 *SchemaUpdateInfoRequestAvatar) 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 *SchemaUpdateInfoRequestAvatar) 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 *SchemaUpdateInfoRequestAvatar) SetCustom(v string) {
|
|
o.Custom = &v
|
|
}
|
|
|
|
// GetGravatar returns the Gravatar field value if set, zero value otherwise.
|
|
func (o *SchemaUpdateInfoRequestAvatar) 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 *SchemaUpdateInfoRequestAvatar) 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 *SchemaUpdateInfoRequestAvatar) 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 *SchemaUpdateInfoRequestAvatar) SetGravatar(v string) {
|
|
o.Gravatar = &v
|
|
}
|
|
|
|
// GetType returns the Type field value if set, zero value otherwise.
|
|
func (o *SchemaUpdateInfoRequestAvatar) 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 *SchemaUpdateInfoRequestAvatar) 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 *SchemaUpdateInfoRequestAvatar) 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 *SchemaUpdateInfoRequestAvatar) SetType(v string) {
|
|
o.Type = &v
|
|
}
|
|
|
|
func (o SchemaUpdateInfoRequestAvatar) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaUpdateInfoRequestAvatar) 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 NullableSchemaUpdateInfoRequestAvatar struct {
|
|
value *SchemaUpdateInfoRequestAvatar
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaUpdateInfoRequestAvatar) Get() *SchemaUpdateInfoRequestAvatar {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaUpdateInfoRequestAvatar) Set(val *SchemaUpdateInfoRequestAvatar) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaUpdateInfoRequestAvatar) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaUpdateInfoRequestAvatar) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaUpdateInfoRequestAvatar(val *SchemaUpdateInfoRequestAvatar) *NullableSchemaUpdateInfoRequestAvatar {
|
|
return &NullableSchemaUpdateInfoRequestAvatar{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaUpdateInfoRequestAvatar) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaUpdateInfoRequestAvatar) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|