Files
stack/components/fctl/membershipclient/model_user_data.go
2023-12-11 09:48:10 +00:00

118 lines
2.6 KiB
Go

/*
Membership API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: 0.1.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package membershipclient
import (
"encoding/json"
)
// checks if the UserData type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &UserData{}
// UserData struct for UserData
type UserData struct {
Email string `json:"email"`
}
// NewUserData instantiates a new UserData 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 NewUserData(email string) *UserData {
this := UserData{}
this.Email = email
return &this
}
// NewUserDataWithDefaults instantiates a new UserData 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 NewUserDataWithDefaults() *UserData {
this := UserData{}
return &this
}
// GetEmail returns the Email field value
func (o *UserData) 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 *UserData) GetEmailOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Email, true
}
// SetEmail sets field value
func (o *UserData) SetEmail(v string) {
o.Email = v
}
func (o UserData) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o UserData) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["email"] = o.Email
return toSerialize, nil
}
type NullableUserData struct {
value *UserData
isSet bool
}
func (v NullableUserData) Get() *UserData {
return v.value
}
func (v *NullableUserData) Set(val *UserData) {
v.value = val
v.isSet = true
}
func (v NullableUserData) IsSet() bool {
return v.isSet
}
func (v *NullableUserData) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUserData(val *UserData) *NullableUserData {
return &NullableUserData{value: val, isSet: true}
}
func (v NullableUserData) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableUserData) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}