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

125 lines
3.6 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 SchemaGetOtherUserInfoResp type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SchemaGetOtherUserInfoResp{}
// SchemaGetOtherUserInfoResp struct for SchemaGetOtherUserInfoResp
type SchemaGetOtherUserInfoResp struct {
Info *SchemaGetOtherUserInfoByUsernameResp `json:"info,omitempty"`
}
// NewSchemaGetOtherUserInfoResp instantiates a new SchemaGetOtherUserInfoResp 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 NewSchemaGetOtherUserInfoResp() *SchemaGetOtherUserInfoResp {
this := SchemaGetOtherUserInfoResp{}
return &this
}
// NewSchemaGetOtherUserInfoRespWithDefaults instantiates a new SchemaGetOtherUserInfoResp 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 NewSchemaGetOtherUserInfoRespWithDefaults() *SchemaGetOtherUserInfoResp {
this := SchemaGetOtherUserInfoResp{}
return &this
}
// GetInfo returns the Info field value if set, zero value otherwise.
func (o *SchemaGetOtherUserInfoResp) GetInfo() SchemaGetOtherUserInfoByUsernameResp {
if o == nil || IsNil(o.Info) {
var ret SchemaGetOtherUserInfoByUsernameResp
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 *SchemaGetOtherUserInfoResp) GetInfoOk() (*SchemaGetOtherUserInfoByUsernameResp, 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 *SchemaGetOtherUserInfoResp) HasInfo() bool {
if o != nil && !IsNil(o.Info) {
return true
}
return false
}
// SetInfo gets a reference to the given SchemaGetOtherUserInfoByUsernameResp and assigns it to the Info field.
func (o *SchemaGetOtherUserInfoResp) SetInfo(v SchemaGetOtherUserInfoByUsernameResp) {
o.Info = &v
}
func (o SchemaGetOtherUserInfoResp) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SchemaGetOtherUserInfoResp) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Info) {
toSerialize["info"] = o.Info
}
return toSerialize, nil
}
type NullableSchemaGetOtherUserInfoResp struct {
value *SchemaGetOtherUserInfoResp
isSet bool
}
func (v NullableSchemaGetOtherUserInfoResp) Get() *SchemaGetOtherUserInfoResp {
return v.value
}
func (v *NullableSchemaGetOtherUserInfoResp) Set(val *SchemaGetOtherUserInfoResp) {
v.value = val
v.isSet = true
}
func (v NullableSchemaGetOtherUserInfoResp) IsSet() bool {
return v.isSet
}
func (v *NullableSchemaGetOtherUserInfoResp) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSchemaGetOtherUserInfoResp(val *SchemaGetOtherUserInfoResp) *NullableSchemaGetOtherUserInfoResp {
return &NullableSchemaGetOtherUserInfoResp{value: val, isSet: true}
}
func (v NullableSchemaGetOtherUserInfoResp) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSchemaGetOtherUserInfoResp) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}