更新文档内容
This commit is contained in:
115
model_schema_user_unsubscribe_notification_req.go
Normal file
115
model_schema_user_unsubscribe_notification_req.go
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
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 SchemaUserUnsubscribeNotificationReq type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &SchemaUserUnsubscribeNotificationReq{}
|
||||
|
||||
// SchemaUserUnsubscribeNotificationReq struct for SchemaUserUnsubscribeNotificationReq
|
||||
type SchemaUserUnsubscribeNotificationReq struct {
|
||||
Code string `json:"code"`
|
||||
}
|
||||
|
||||
// NewSchemaUserUnsubscribeNotificationReq instantiates a new SchemaUserUnsubscribeNotificationReq 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 NewSchemaUserUnsubscribeNotificationReq(code string) *SchemaUserUnsubscribeNotificationReq {
|
||||
this := SchemaUserUnsubscribeNotificationReq{}
|
||||
this.Code = code
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewSchemaUserUnsubscribeNotificationReqWithDefaults instantiates a new SchemaUserUnsubscribeNotificationReq 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 NewSchemaUserUnsubscribeNotificationReqWithDefaults() *SchemaUserUnsubscribeNotificationReq {
|
||||
this := SchemaUserUnsubscribeNotificationReq{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCode returns the Code field value
|
||||
func (o *SchemaUserUnsubscribeNotificationReq) GetCode() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Code
|
||||
}
|
||||
|
||||
// GetCodeOk returns a tuple with the Code field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaUserUnsubscribeNotificationReq) GetCodeOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Code, true
|
||||
}
|
||||
|
||||
// SetCode sets field value
|
||||
func (o *SchemaUserUnsubscribeNotificationReq) SetCode(v string) {
|
||||
o.Code = v
|
||||
}
|
||||
|
||||
func (o SchemaUserUnsubscribeNotificationReq) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o SchemaUserUnsubscribeNotificationReq) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
toSerialize["code"] = o.Code
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableSchemaUserUnsubscribeNotificationReq struct {
|
||||
value *SchemaUserUnsubscribeNotificationReq
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableSchemaUserUnsubscribeNotificationReq) Get() *SchemaUserUnsubscribeNotificationReq {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableSchemaUserUnsubscribeNotificationReq) Set(val *SchemaUserUnsubscribeNotificationReq) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableSchemaUserUnsubscribeNotificationReq) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableSchemaUserUnsubscribeNotificationReq) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableSchemaUserUnsubscribeNotificationReq(val *SchemaUserUnsubscribeNotificationReq) *NullableSchemaUserUnsubscribeNotificationReq {
|
||||
return &NullableSchemaUserUnsubscribeNotificationReq{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableSchemaUserUnsubscribeNotificationReq) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableSchemaUserUnsubscribeNotificationReq) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user