119 lines
2.9 KiB
Go
119 lines
2.9 KiB
Go
/*
|
|
answer
|
|
|
|
answer api
|
|
|
|
API version: v0.0.1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package openapi
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the SchemaRemoveQuestionReq type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaRemoveQuestionReq{}
|
|
|
|
// SchemaRemoveQuestionReq struct for SchemaRemoveQuestionReq
|
|
type SchemaRemoveQuestionReq struct {
|
|
// question id
|
|
Id string `json:"id"`
|
|
}
|
|
|
|
// NewSchemaRemoveQuestionReq instantiates a new SchemaRemoveQuestionReq 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 NewSchemaRemoveQuestionReq(id string) *SchemaRemoveQuestionReq {
|
|
this := SchemaRemoveQuestionReq{}
|
|
this.Id = id
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaRemoveQuestionReqWithDefaults instantiates a new SchemaRemoveQuestionReq 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 NewSchemaRemoveQuestionReqWithDefaults() *SchemaRemoveQuestionReq {
|
|
this := SchemaRemoveQuestionReq{}
|
|
return &this
|
|
}
|
|
|
|
// GetId returns the Id field value
|
|
func (o *SchemaRemoveQuestionReq) 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 *SchemaRemoveQuestionReq) GetIdOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Id, true
|
|
}
|
|
|
|
// SetId sets field value
|
|
func (o *SchemaRemoveQuestionReq) SetId(v string) {
|
|
o.Id = v
|
|
}
|
|
|
|
func (o SchemaRemoveQuestionReq) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaRemoveQuestionReq) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
toSerialize["id"] = o.Id
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableSchemaRemoveQuestionReq struct {
|
|
value *SchemaRemoveQuestionReq
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaRemoveQuestionReq) Get() *SchemaRemoveQuestionReq {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaRemoveQuestionReq) Set(val *SchemaRemoveQuestionReq) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaRemoveQuestionReq) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaRemoveQuestionReq) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaRemoveQuestionReq(val *SchemaRemoveQuestionReq) *NullableSchemaRemoveQuestionReq {
|
|
return &NullableSchemaRemoveQuestionReq{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaRemoveQuestionReq) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaRemoveQuestionReq) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|