/* 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 SchemaUpdateInfoRequest type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaUpdateInfoRequest{} // SchemaUpdateInfoRequest struct for SchemaUpdateInfoRequest type SchemaUpdateInfoRequest struct { Avatar *SchemaAvatarInfo `json:"avatar,omitempty"` // bio Bio *string `json:"bio,omitempty"` // display_name DisplayName *string `json:"display_name,omitempty"` // location Location *string `json:"location,omitempty"` // username Username *string `json:"username,omitempty"` // website Website *string `json:"website,omitempty"` } // NewSchemaUpdateInfoRequest instantiates a new SchemaUpdateInfoRequest 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 NewSchemaUpdateInfoRequest() *SchemaUpdateInfoRequest { this := SchemaUpdateInfoRequest{} return &this } // NewSchemaUpdateInfoRequestWithDefaults instantiates a new SchemaUpdateInfoRequest 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 NewSchemaUpdateInfoRequestWithDefaults() *SchemaUpdateInfoRequest { this := SchemaUpdateInfoRequest{} return &this } // GetAvatar returns the Avatar field value if set, zero value otherwise. func (o *SchemaUpdateInfoRequest) GetAvatar() SchemaAvatarInfo { if o == nil || IsNil(o.Avatar) { var ret SchemaAvatarInfo return ret } return *o.Avatar } // GetAvatarOk returns a tuple with the Avatar field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaUpdateInfoRequest) GetAvatarOk() (*SchemaAvatarInfo, bool) { if o == nil || IsNil(o.Avatar) { return nil, false } return o.Avatar, true } // HasAvatar returns a boolean if a field has been set. func (o *SchemaUpdateInfoRequest) HasAvatar() bool { if o != nil && !IsNil(o.Avatar) { return true } return false } // SetAvatar gets a reference to the given SchemaAvatarInfo and assigns it to the Avatar field. func (o *SchemaUpdateInfoRequest) SetAvatar(v SchemaAvatarInfo) { o.Avatar = &v } // GetBio returns the Bio field value if set, zero value otherwise. func (o *SchemaUpdateInfoRequest) GetBio() string { if o == nil || IsNil(o.Bio) { var ret string return ret } return *o.Bio } // GetBioOk returns a tuple with the Bio field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaUpdateInfoRequest) GetBioOk() (*string, bool) { if o == nil || IsNil(o.Bio) { return nil, false } return o.Bio, true } // HasBio returns a boolean if a field has been set. func (o *SchemaUpdateInfoRequest) HasBio() bool { if o != nil && !IsNil(o.Bio) { return true } return false } // SetBio gets a reference to the given string and assigns it to the Bio field. func (o *SchemaUpdateInfoRequest) SetBio(v string) { o.Bio = &v } // GetDisplayName returns the DisplayName field value if set, zero value otherwise. func (o *SchemaUpdateInfoRequest) GetDisplayName() string { if o == nil || IsNil(o.DisplayName) { var ret string return ret } return *o.DisplayName } // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaUpdateInfoRequest) GetDisplayNameOk() (*string, bool) { if o == nil || IsNil(o.DisplayName) { return nil, false } return o.DisplayName, true } // HasDisplayName returns a boolean if a field has been set. func (o *SchemaUpdateInfoRequest) HasDisplayName() bool { if o != nil && !IsNil(o.DisplayName) { return true } return false } // SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. func (o *SchemaUpdateInfoRequest) SetDisplayName(v string) { o.DisplayName = &v } // GetLocation returns the Location field value if set, zero value otherwise. func (o *SchemaUpdateInfoRequest) GetLocation() string { if o == nil || IsNil(o.Location) { var ret string return ret } return *o.Location } // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaUpdateInfoRequest) GetLocationOk() (*string, bool) { if o == nil || IsNil(o.Location) { return nil, false } return o.Location, true } // HasLocation returns a boolean if a field has been set. func (o *SchemaUpdateInfoRequest) HasLocation() bool { if o != nil && !IsNil(o.Location) { return true } return false } // SetLocation gets a reference to the given string and assigns it to the Location field. func (o *SchemaUpdateInfoRequest) SetLocation(v string) { o.Location = &v } // GetUsername returns the Username field value if set, zero value otherwise. func (o *SchemaUpdateInfoRequest) GetUsername() string { if o == nil || IsNil(o.Username) { var ret string return ret } return *o.Username } // GetUsernameOk returns a tuple with the Username field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaUpdateInfoRequest) GetUsernameOk() (*string, bool) { if o == nil || IsNil(o.Username) { return nil, false } return o.Username, true } // HasUsername returns a boolean if a field has been set. func (o *SchemaUpdateInfoRequest) HasUsername() bool { if o != nil && !IsNil(o.Username) { return true } return false } // SetUsername gets a reference to the given string and assigns it to the Username field. func (o *SchemaUpdateInfoRequest) SetUsername(v string) { o.Username = &v } // GetWebsite returns the Website field value if set, zero value otherwise. func (o *SchemaUpdateInfoRequest) GetWebsite() string { if o == nil || IsNil(o.Website) { var ret string return ret } return *o.Website } // GetWebsiteOk returns a tuple with the Website field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaUpdateInfoRequest) GetWebsiteOk() (*string, bool) { if o == nil || IsNil(o.Website) { return nil, false } return o.Website, true } // HasWebsite returns a boolean if a field has been set. func (o *SchemaUpdateInfoRequest) HasWebsite() bool { if o != nil && !IsNil(o.Website) { return true } return false } // SetWebsite gets a reference to the given string and assigns it to the Website field. func (o *SchemaUpdateInfoRequest) SetWebsite(v string) { o.Website = &v } func (o SchemaUpdateInfoRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaUpdateInfoRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Avatar) { toSerialize["avatar"] = o.Avatar } if !IsNil(o.Bio) { toSerialize["bio"] = o.Bio } if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } if !IsNil(o.Location) { toSerialize["location"] = o.Location } if !IsNil(o.Username) { toSerialize["username"] = o.Username } if !IsNil(o.Website) { toSerialize["website"] = o.Website } return toSerialize, nil } type NullableSchemaUpdateInfoRequest struct { value *SchemaUpdateInfoRequest isSet bool } func (v NullableSchemaUpdateInfoRequest) Get() *SchemaUpdateInfoRequest { return v.value } func (v *NullableSchemaUpdateInfoRequest) Set(val *SchemaUpdateInfoRequest) { v.value = val v.isSet = true } func (v NullableSchemaUpdateInfoRequest) IsSet() bool { return v.isSet } func (v *NullableSchemaUpdateInfoRequest) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaUpdateInfoRequest(val *SchemaUpdateInfoRequest) *NullableSchemaUpdateInfoRequest { return &NullableSchemaUpdateInfoRequest{value: val, isSet: true} } func (v NullableSchemaUpdateInfoRequest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaUpdateInfoRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }