/* 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 SchemaAddUsersReq type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaAddUsersReq{} // SchemaAddUsersReq struct for SchemaAddUsersReq type SchemaAddUsersReq struct { // users info line by line Users *string `json:"users,omitempty"` } // NewSchemaAddUsersReq instantiates a new SchemaAddUsersReq 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 NewSchemaAddUsersReq() *SchemaAddUsersReq { this := SchemaAddUsersReq{} return &this } // NewSchemaAddUsersReqWithDefaults instantiates a new SchemaAddUsersReq 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 NewSchemaAddUsersReqWithDefaults() *SchemaAddUsersReq { this := SchemaAddUsersReq{} return &this } // GetUsers returns the Users field value if set, zero value otherwise. func (o *SchemaAddUsersReq) GetUsers() string { if o == nil || IsNil(o.Users) { var ret string return ret } return *o.Users } // GetUsersOk returns a tuple with the Users field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaAddUsersReq) GetUsersOk() (*string, bool) { if o == nil || IsNil(o.Users) { return nil, false } return o.Users, true } // HasUsers returns a boolean if a field has been set. func (o *SchemaAddUsersReq) HasUsers() bool { if o != nil && !IsNil(o.Users) { return true } return false } // SetUsers gets a reference to the given string and assigns it to the Users field. func (o *SchemaAddUsersReq) SetUsers(v string) { o.Users = &v } func (o SchemaAddUsersReq) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaAddUsersReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Users) { toSerialize["users"] = o.Users } return toSerialize, nil } type NullableSchemaAddUsersReq struct { value *SchemaAddUsersReq isSet bool } func (v NullableSchemaAddUsersReq) Get() *SchemaAddUsersReq { return v.value } func (v *NullableSchemaAddUsersReq) Set(val *SchemaAddUsersReq) { v.value = val v.isSet = true } func (v NullableSchemaAddUsersReq) IsSet() bool { return v.isSet } func (v *NullableSchemaAddUsersReq) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaAddUsersReq(val *SchemaAddUsersReq) *NullableSchemaAddUsersReq { return &NullableSchemaAddUsersReq{value: val, isSet: true} } func (v NullableSchemaAddUsersReq) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaAddUsersReq) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }