Files
openapi-go-answer/model_schema_get_unreviewed_revision_resp.go
2023-09-26 16:20:01 +08:00

197 lines
5.9 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 SchemaGetUnreviewedRevisionResp type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SchemaGetUnreviewedRevisionResp{}
// SchemaGetUnreviewedRevisionResp struct for SchemaGetUnreviewedRevisionResp
type SchemaGetUnreviewedRevisionResp struct {
Info *SchemaUnreviewedRevisionInfoInfo `json:"info,omitempty"`
Type *string `json:"type,omitempty"`
UnreviewedInfo *SchemaGetRevisionResp `json:"unreviewed_info,omitempty"`
}
// NewSchemaGetUnreviewedRevisionResp instantiates a new SchemaGetUnreviewedRevisionResp 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 NewSchemaGetUnreviewedRevisionResp() *SchemaGetUnreviewedRevisionResp {
this := SchemaGetUnreviewedRevisionResp{}
return &this
}
// NewSchemaGetUnreviewedRevisionRespWithDefaults instantiates a new SchemaGetUnreviewedRevisionResp 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 NewSchemaGetUnreviewedRevisionRespWithDefaults() *SchemaGetUnreviewedRevisionResp {
this := SchemaGetUnreviewedRevisionResp{}
return &this
}
// GetInfo returns the Info field value if set, zero value otherwise.
func (o *SchemaGetUnreviewedRevisionResp) GetInfo() SchemaUnreviewedRevisionInfoInfo {
if o == nil || IsNil(o.Info) {
var ret SchemaUnreviewedRevisionInfoInfo
return ret
}
return *o.Info
}
// GetInfoOk returns a tuple with the Info field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SchemaGetUnreviewedRevisionResp) GetInfoOk() (*SchemaUnreviewedRevisionInfoInfo, bool) {
if o == nil || IsNil(o.Info) {
return nil, false
}
return o.Info, true
}
// HasInfo returns a boolean if a field has been set.
func (o *SchemaGetUnreviewedRevisionResp) HasInfo() bool {
if o != nil && !IsNil(o.Info) {
return true
}
return false
}
// SetInfo gets a reference to the given SchemaUnreviewedRevisionInfoInfo and assigns it to the Info field.
func (o *SchemaGetUnreviewedRevisionResp) SetInfo(v SchemaUnreviewedRevisionInfoInfo) {
o.Info = &v
}
// GetType returns the Type field value if set, zero value otherwise.
func (o *SchemaGetUnreviewedRevisionResp) GetType() string {
if o == nil || IsNil(o.Type) {
var ret string
return ret
}
return *o.Type
}
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SchemaGetUnreviewedRevisionResp) GetTypeOk() (*string, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
return o.Type, true
}
// HasType returns a boolean if a field has been set.
func (o *SchemaGetUnreviewedRevisionResp) HasType() bool {
if o != nil && !IsNil(o.Type) {
return true
}
return false
}
// SetType gets a reference to the given string and assigns it to the Type field.
func (o *SchemaGetUnreviewedRevisionResp) SetType(v string) {
o.Type = &v
}
// GetUnreviewedInfo returns the UnreviewedInfo field value if set, zero value otherwise.
func (o *SchemaGetUnreviewedRevisionResp) GetUnreviewedInfo() SchemaGetRevisionResp {
if o == nil || IsNil(o.UnreviewedInfo) {
var ret SchemaGetRevisionResp
return ret
}
return *o.UnreviewedInfo
}
// GetUnreviewedInfoOk returns a tuple with the UnreviewedInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SchemaGetUnreviewedRevisionResp) GetUnreviewedInfoOk() (*SchemaGetRevisionResp, bool) {
if o == nil || IsNil(o.UnreviewedInfo) {
return nil, false
}
return o.UnreviewedInfo, true
}
// HasUnreviewedInfo returns a boolean if a field has been set.
func (o *SchemaGetUnreviewedRevisionResp) HasUnreviewedInfo() bool {
if o != nil && !IsNil(o.UnreviewedInfo) {
return true
}
return false
}
// SetUnreviewedInfo gets a reference to the given SchemaGetRevisionResp and assigns it to the UnreviewedInfo field.
func (o *SchemaGetUnreviewedRevisionResp) SetUnreviewedInfo(v SchemaGetRevisionResp) {
o.UnreviewedInfo = &v
}
func (o SchemaGetUnreviewedRevisionResp) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SchemaGetUnreviewedRevisionResp) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Info) {
toSerialize["info"] = o.Info
}
if !IsNil(o.Type) {
toSerialize["type"] = o.Type
}
if !IsNil(o.UnreviewedInfo) {
toSerialize["unreviewed_info"] = o.UnreviewedInfo
}
return toSerialize, nil
}
type NullableSchemaGetUnreviewedRevisionResp struct {
value *SchemaGetUnreviewedRevisionResp
isSet bool
}
func (v NullableSchemaGetUnreviewedRevisionResp) Get() *SchemaGetUnreviewedRevisionResp {
return v.value
}
func (v *NullableSchemaGetUnreviewedRevisionResp) Set(val *SchemaGetUnreviewedRevisionResp) {
v.value = val
v.isSet = true
}
func (v NullableSchemaGetUnreviewedRevisionResp) IsSet() bool {
return v.isSet
}
func (v *NullableSchemaGetUnreviewedRevisionResp) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSchemaGetUnreviewedRevisionResp(val *SchemaGetUnreviewedRevisionResp) *NullableSchemaGetUnreviewedRevisionResp {
return &NullableSchemaGetUnreviewedRevisionResp{value: val, isSet: true}
}
func (v NullableSchemaGetUnreviewedRevisionResp) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSchemaGetUnreviewedRevisionResp) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}