/* 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 SchemaQuestionUpdateInviteUser type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaQuestionUpdateInviteUser{} // SchemaQuestionUpdateInviteUser struct for SchemaQuestionUpdateInviteUser type SchemaQuestionUpdateInviteUser struct { CaptchaCode *string `json:"captcha_code,omitempty"` // captcha_id CaptchaId *string `json:"captcha_id,omitempty"` Id string `json:"id"` InviteUser []string `json:"invite_user,omitempty"` } // NewSchemaQuestionUpdateInviteUser instantiates a new SchemaQuestionUpdateInviteUser 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 NewSchemaQuestionUpdateInviteUser(id string) *SchemaQuestionUpdateInviteUser { this := SchemaQuestionUpdateInviteUser{} this.Id = id return &this } // NewSchemaQuestionUpdateInviteUserWithDefaults instantiates a new SchemaQuestionUpdateInviteUser 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 NewSchemaQuestionUpdateInviteUserWithDefaults() *SchemaQuestionUpdateInviteUser { this := SchemaQuestionUpdateInviteUser{} return &this } // GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. func (o *SchemaQuestionUpdateInviteUser) GetCaptchaCode() string { if o == nil || IsNil(o.CaptchaCode) { var ret string return ret } return *o.CaptchaCode } // GetCaptchaCodeOk returns a tuple with the CaptchaCode field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaQuestionUpdateInviteUser) GetCaptchaCodeOk() (*string, bool) { if o == nil || IsNil(o.CaptchaCode) { return nil, false } return o.CaptchaCode, true } // HasCaptchaCode returns a boolean if a field has been set. func (o *SchemaQuestionUpdateInviteUser) HasCaptchaCode() bool { if o != nil && !IsNil(o.CaptchaCode) { return true } return false } // SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field. func (o *SchemaQuestionUpdateInviteUser) SetCaptchaCode(v string) { o.CaptchaCode = &v } // GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. func (o *SchemaQuestionUpdateInviteUser) GetCaptchaId() string { if o == nil || IsNil(o.CaptchaId) { var ret string return ret } return *o.CaptchaId } // GetCaptchaIdOk returns a tuple with the CaptchaId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaQuestionUpdateInviteUser) GetCaptchaIdOk() (*string, bool) { if o == nil || IsNil(o.CaptchaId) { return nil, false } return o.CaptchaId, true } // HasCaptchaId returns a boolean if a field has been set. func (o *SchemaQuestionUpdateInviteUser) HasCaptchaId() bool { if o != nil && !IsNil(o.CaptchaId) { return true } return false } // SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field. func (o *SchemaQuestionUpdateInviteUser) SetCaptchaId(v string) { o.CaptchaId = &v } // GetId returns the Id field value func (o *SchemaQuestionUpdateInviteUser) GetId() string { if o == nil { var ret string return ret } return o.Id } // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. func (o *SchemaQuestionUpdateInviteUser) GetIdOk() (*string, bool) { if o == nil { return nil, false } return &o.Id, true } // SetId sets field value func (o *SchemaQuestionUpdateInviteUser) SetId(v string) { o.Id = v } // GetInviteUser returns the InviteUser field value if set, zero value otherwise. func (o *SchemaQuestionUpdateInviteUser) GetInviteUser() []string { if o == nil || IsNil(o.InviteUser) { var ret []string return ret } return o.InviteUser } // GetInviteUserOk returns a tuple with the InviteUser field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaQuestionUpdateInviteUser) GetInviteUserOk() ([]string, bool) { if o == nil || IsNil(o.InviteUser) { return nil, false } return o.InviteUser, true } // HasInviteUser returns a boolean if a field has been set. func (o *SchemaQuestionUpdateInviteUser) HasInviteUser() bool { if o != nil && !IsNil(o.InviteUser) { return true } return false } // SetInviteUser gets a reference to the given []string and assigns it to the InviteUser field. func (o *SchemaQuestionUpdateInviteUser) SetInviteUser(v []string) { o.InviteUser = v } func (o SchemaQuestionUpdateInviteUser) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaQuestionUpdateInviteUser) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.CaptchaCode) { toSerialize["captcha_code"] = o.CaptchaCode } if !IsNil(o.CaptchaId) { toSerialize["captcha_id"] = o.CaptchaId } toSerialize["id"] = o.Id if !IsNil(o.InviteUser) { toSerialize["invite_user"] = o.InviteUser } return toSerialize, nil } type NullableSchemaQuestionUpdateInviteUser struct { value *SchemaQuestionUpdateInviteUser isSet bool } func (v NullableSchemaQuestionUpdateInviteUser) Get() *SchemaQuestionUpdateInviteUser { return v.value } func (v *NullableSchemaQuestionUpdateInviteUser) Set(val *SchemaQuestionUpdateInviteUser) { v.value = val v.isSet = true } func (v NullableSchemaQuestionUpdateInviteUser) IsSet() bool { return v.isSet } func (v *NullableSchemaQuestionUpdateInviteUser) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaQuestionUpdateInviteUser(val *SchemaQuestionUpdateInviteUser) *NullableSchemaQuestionUpdateInviteUser { return &NullableSchemaQuestionUpdateInviteUser{value: val, isSet: true} } func (v NullableSchemaQuestionUpdateInviteUser) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaQuestionUpdateInviteUser) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }