153 lines
4.1 KiB
Go
153 lines
4.1 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 SchemaOperationQuestionReq type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaOperationQuestionReq{}
|
|
|
|
// SchemaOperationQuestionReq struct for SchemaOperationQuestionReq
|
|
type SchemaOperationQuestionReq struct {
|
|
Id string `json:"id"`
|
|
// operation [pin unpin hide show]
|
|
Operation *string `json:"operation,omitempty"`
|
|
}
|
|
|
|
// NewSchemaOperationQuestionReq instantiates a new SchemaOperationQuestionReq 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 NewSchemaOperationQuestionReq(id string) *SchemaOperationQuestionReq {
|
|
this := SchemaOperationQuestionReq{}
|
|
this.Id = id
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaOperationQuestionReqWithDefaults instantiates a new SchemaOperationQuestionReq 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 NewSchemaOperationQuestionReqWithDefaults() *SchemaOperationQuestionReq {
|
|
this := SchemaOperationQuestionReq{}
|
|
return &this
|
|
}
|
|
|
|
// GetId returns the Id field value
|
|
func (o *SchemaOperationQuestionReq) GetId() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.Id
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaOperationQuestionReq) GetIdOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Id, true
|
|
}
|
|
|
|
// SetId sets field value
|
|
func (o *SchemaOperationQuestionReq) SetId(v string) {
|
|
o.Id = v
|
|
}
|
|
|
|
// GetOperation returns the Operation field value if set, zero value otherwise.
|
|
func (o *SchemaOperationQuestionReq) GetOperation() string {
|
|
if o == nil || IsNil(o.Operation) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Operation
|
|
}
|
|
|
|
// GetOperationOk returns a tuple with the Operation field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaOperationQuestionReq) GetOperationOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Operation) {
|
|
return nil, false
|
|
}
|
|
return o.Operation, true
|
|
}
|
|
|
|
// HasOperation returns a boolean if a field has been set.
|
|
func (o *SchemaOperationQuestionReq) HasOperation() bool {
|
|
if o != nil && !IsNil(o.Operation) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOperation gets a reference to the given string and assigns it to the Operation field.
|
|
func (o *SchemaOperationQuestionReq) SetOperation(v string) {
|
|
o.Operation = &v
|
|
}
|
|
|
|
func (o SchemaOperationQuestionReq) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaOperationQuestionReq) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
toSerialize["id"] = o.Id
|
|
if !IsNil(o.Operation) {
|
|
toSerialize["operation"] = o.Operation
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableSchemaOperationQuestionReq struct {
|
|
value *SchemaOperationQuestionReq
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaOperationQuestionReq) Get() *SchemaOperationQuestionReq {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaOperationQuestionReq) Set(val *SchemaOperationQuestionReq) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaOperationQuestionReq) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaOperationQuestionReq) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaOperationQuestionReq(val *SchemaOperationQuestionReq) *NullableSchemaOperationQuestionReq {
|
|
return &NullableSchemaOperationQuestionReq{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaOperationQuestionReq) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaOperationQuestionReq) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|