/* 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 SchemaAddUserReq type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaAddUserReq{} // SchemaAddUserReq struct for SchemaAddUserReq type SchemaAddUserReq struct { DisplayName string `json:"display_name"` Email string `json:"email"` Password string `json:"password"` } // NewSchemaAddUserReq instantiates a new SchemaAddUserReq 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 NewSchemaAddUserReq(displayName string, email string, password string) *SchemaAddUserReq { this := SchemaAddUserReq{} this.DisplayName = displayName this.Email = email this.Password = password return &this } // NewSchemaAddUserReqWithDefaults instantiates a new SchemaAddUserReq 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 NewSchemaAddUserReqWithDefaults() *SchemaAddUserReq { this := SchemaAddUserReq{} return &this } // GetDisplayName returns the DisplayName field value func (o *SchemaAddUserReq) GetDisplayName() string { if o == nil { var ret string return ret } return o.DisplayName } // GetDisplayNameOk returns a tuple with the DisplayName field value // and a boolean to check if the value has been set. func (o *SchemaAddUserReq) GetDisplayNameOk() (*string, bool) { if o == nil { return nil, false } return &o.DisplayName, true } // SetDisplayName sets field value func (o *SchemaAddUserReq) SetDisplayName(v string) { o.DisplayName = v } // GetEmail returns the Email field value func (o *SchemaAddUserReq) GetEmail() string { if o == nil { var ret string return ret } return o.Email } // GetEmailOk returns a tuple with the Email field value // and a boolean to check if the value has been set. func (o *SchemaAddUserReq) GetEmailOk() (*string, bool) { if o == nil { return nil, false } return &o.Email, true } // SetEmail sets field value func (o *SchemaAddUserReq) SetEmail(v string) { o.Email = v } // GetPassword returns the Password field value func (o *SchemaAddUserReq) GetPassword() string { if o == nil { var ret string return ret } return o.Password } // GetPasswordOk returns a tuple with the Password field value // and a boolean to check if the value has been set. func (o *SchemaAddUserReq) GetPasswordOk() (*string, bool) { if o == nil { return nil, false } return &o.Password, true } // SetPassword sets field value func (o *SchemaAddUserReq) SetPassword(v string) { o.Password = v } func (o SchemaAddUserReq) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaAddUserReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["display_name"] = o.DisplayName toSerialize["email"] = o.Email toSerialize["password"] = o.Password return toSerialize, nil } type NullableSchemaAddUserReq struct { value *SchemaAddUserReq isSet bool } func (v NullableSchemaAddUserReq) Get() *SchemaAddUserReq { return v.value } func (v *NullableSchemaAddUserReq) Set(val *SchemaAddUserReq) { v.value = val v.isSet = true } func (v NullableSchemaAddUserReq) IsSet() bool { return v.isSet } func (v *NullableSchemaAddUserReq) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaAddUserReq(val *SchemaAddUserReq) *NullableSchemaAddUserReq { return &NullableSchemaAddUserReq{value: val, isSet: true} } func (v NullableSchemaAddUserReq) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaAddUserReq) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }