125 lines
3.7 KiB
Go
125 lines
3.7 KiB
Go
/*
|
|
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 SchemaGetUserActivationResp type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaGetUserActivationResp{}
|
|
|
|
// SchemaGetUserActivationResp struct for SchemaGetUserActivationResp
|
|
type SchemaGetUserActivationResp struct {
|
|
ActivationUrl *string `json:"activation_url,omitempty"`
|
|
}
|
|
|
|
// NewSchemaGetUserActivationResp instantiates a new SchemaGetUserActivationResp 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 NewSchemaGetUserActivationResp() *SchemaGetUserActivationResp {
|
|
this := SchemaGetUserActivationResp{}
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaGetUserActivationRespWithDefaults instantiates a new SchemaGetUserActivationResp 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 NewSchemaGetUserActivationRespWithDefaults() *SchemaGetUserActivationResp {
|
|
this := SchemaGetUserActivationResp{}
|
|
return &this
|
|
}
|
|
|
|
// GetActivationUrl returns the ActivationUrl field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserActivationResp) GetActivationUrl() string {
|
|
if o == nil || IsNil(o.ActivationUrl) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ActivationUrl
|
|
}
|
|
|
|
// GetActivationUrlOk returns a tuple with the ActivationUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserActivationResp) GetActivationUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ActivationUrl) {
|
|
return nil, false
|
|
}
|
|
return o.ActivationUrl, true
|
|
}
|
|
|
|
// HasActivationUrl returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserActivationResp) HasActivationUrl() bool {
|
|
if o != nil && !IsNil(o.ActivationUrl) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetActivationUrl gets a reference to the given string and assigns it to the ActivationUrl field.
|
|
func (o *SchemaGetUserActivationResp) SetActivationUrl(v string) {
|
|
o.ActivationUrl = &v
|
|
}
|
|
|
|
func (o SchemaGetUserActivationResp) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaGetUserActivationResp) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.ActivationUrl) {
|
|
toSerialize["activation_url"] = o.ActivationUrl
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableSchemaGetUserActivationResp struct {
|
|
value *SchemaGetUserActivationResp
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaGetUserActivationResp) Get() *SchemaGetUserActivationResp {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaGetUserActivationResp) Set(val *SchemaGetUserActivationResp) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaGetUserActivationResp) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaGetUserActivationResp) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaGetUserActivationResp(val *SchemaGetUserActivationResp) *NullableSchemaGetUserActivationResp {
|
|
return &NullableSchemaGetUserActivationResp{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaGetUserActivationResp) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaGetUserActivationResp) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|