mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
118 lines
2.7 KiB
Go
118 lines
2.7 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 UserDataAllOf type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &UserDataAllOf{}
|
|
|
|
// UserDataAllOf struct for UserDataAllOf
|
|
type UserDataAllOf struct {
|
|
Email string `json:"email"`
|
|
}
|
|
|
|
// NewUserDataAllOf instantiates a new UserDataAllOf 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 NewUserDataAllOf(email string) *UserDataAllOf {
|
|
this := UserDataAllOf{}
|
|
this.Email = email
|
|
return &this
|
|
}
|
|
|
|
// NewUserDataAllOfWithDefaults instantiates a new UserDataAllOf 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 NewUserDataAllOfWithDefaults() *UserDataAllOf {
|
|
this := UserDataAllOf{}
|
|
return &this
|
|
}
|
|
|
|
// GetEmail returns the Email field value
|
|
func (o *UserDataAllOf) 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 *UserDataAllOf) GetEmailOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Email, true
|
|
}
|
|
|
|
// SetEmail sets field value
|
|
func (o *UserDataAllOf) SetEmail(v string) {
|
|
o.Email = v
|
|
}
|
|
|
|
func (o UserDataAllOf) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o UserDataAllOf) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
toSerialize["email"] = o.Email
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableUserDataAllOf struct {
|
|
value *UserDataAllOf
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableUserDataAllOf) Get() *UserDataAllOf {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableUserDataAllOf) Set(val *UserDataAllOf) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableUserDataAllOf) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableUserDataAllOf) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableUserDataAllOf(val *UserDataAllOf) *NullableUserDataAllOf {
|
|
return &NullableUserDataAllOf{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableUserDataAllOf) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableUserDataAllOf) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|