/* 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 SchemaSendUserActivationReq type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaSendUserActivationReq{} // SchemaSendUserActivationReq struct for SchemaSendUserActivationReq type SchemaSendUserActivationReq struct { UserId string `json:"user_id"` } // NewSchemaSendUserActivationReq instantiates a new SchemaSendUserActivationReq 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 NewSchemaSendUserActivationReq(userId string) *SchemaSendUserActivationReq { this := SchemaSendUserActivationReq{} this.UserId = userId return &this } // NewSchemaSendUserActivationReqWithDefaults instantiates a new SchemaSendUserActivationReq 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 NewSchemaSendUserActivationReqWithDefaults() *SchemaSendUserActivationReq { this := SchemaSendUserActivationReq{} return &this } // GetUserId returns the UserId field value func (o *SchemaSendUserActivationReq) GetUserId() string { if o == nil { var ret string return ret } return o.UserId } // GetUserIdOk returns a tuple with the UserId field value // and a boolean to check if the value has been set. func (o *SchemaSendUserActivationReq) GetUserIdOk() (*string, bool) { if o == nil { return nil, false } return &o.UserId, true } // SetUserId sets field value func (o *SchemaSendUserActivationReq) SetUserId(v string) { o.UserId = v } func (o SchemaSendUserActivationReq) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaSendUserActivationReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["user_id"] = o.UserId return toSerialize, nil } type NullableSchemaSendUserActivationReq struct { value *SchemaSendUserActivationReq isSet bool } func (v NullableSchemaSendUserActivationReq) Get() *SchemaSendUserActivationReq { return v.value } func (v *NullableSchemaSendUserActivationReq) Set(val *SchemaSendUserActivationReq) { v.value = val v.isSet = true } func (v NullableSchemaSendUserActivationReq) IsSet() bool { return v.isSet } func (v *NullableSchemaSendUserActivationReq) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaSendUserActivationReq(val *SchemaSendUserActivationReq) *NullableSchemaSendUserActivationReq { return &NullableSchemaSendUserActivationReq{value: val, isSet: true} } func (v NullableSchemaSendUserActivationReq) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaSendUserActivationReq) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }