/* Ory Identities API This is the API specification for Ory Identities with features such as registration, login, recovery, account verification, profile settings, password reset, identity management, session management, email and sms delivery, and more. API version: Contact: office@ory.sh */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package client import ( "encoding/json" ) // checks if the DeviceAuthnIOSAttestation type satisfies the MappedNullable interface at compile time var _ MappedNullable = &DeviceAuthnIOSAttestation{} // DeviceAuthnIOSAttestation Defined in https://developer.apple.com/documentation/devicecheck/validating-apps-that-connect-to-your-server#Verify-the-attestation . type DeviceAuthnIOSAttestation struct { AttStmt *DeviceAuthnIOSAttStmt `json:"att_stmt,omitempty"` AuthData []int32 `json:"auth_data,omitempty"` Fmt *string `json:"fmt,omitempty"` AdditionalProperties map[string]interface{} } type _DeviceAuthnIOSAttestation DeviceAuthnIOSAttestation // NewDeviceAuthnIOSAttestation instantiates a new DeviceAuthnIOSAttestation 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 NewDeviceAuthnIOSAttestation() *DeviceAuthnIOSAttestation { this := DeviceAuthnIOSAttestation{} return &this } // NewDeviceAuthnIOSAttestationWithDefaults instantiates a new DeviceAuthnIOSAttestation 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 NewDeviceAuthnIOSAttestationWithDefaults() *DeviceAuthnIOSAttestation { this := DeviceAuthnIOSAttestation{} return &this } // GetAttStmt returns the AttStmt field value if set, zero value otherwise. func (o *DeviceAuthnIOSAttestation) GetAttStmt() DeviceAuthnIOSAttStmt { if o == nil || IsNil(o.AttStmt) { var ret DeviceAuthnIOSAttStmt return ret } return *o.AttStmt } // GetAttStmtOk returns a tuple with the AttStmt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DeviceAuthnIOSAttestation) GetAttStmtOk() (*DeviceAuthnIOSAttStmt, bool) { if o == nil || IsNil(o.AttStmt) { return nil, false } return o.AttStmt, true } // HasAttStmt returns a boolean if a field has been set. func (o *DeviceAuthnIOSAttestation) HasAttStmt() bool { if o != nil && !IsNil(o.AttStmt) { return true } return false } // SetAttStmt gets a reference to the given DeviceAuthnIOSAttStmt and assigns it to the AttStmt field. func (o *DeviceAuthnIOSAttestation) SetAttStmt(v DeviceAuthnIOSAttStmt) { o.AttStmt = &v } // GetAuthData returns the AuthData field value if set, zero value otherwise. func (o *DeviceAuthnIOSAttestation) GetAuthData() []int32 { if o == nil || IsNil(o.AuthData) { var ret []int32 return ret } return o.AuthData } // GetAuthDataOk returns a tuple with the AuthData field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DeviceAuthnIOSAttestation) GetAuthDataOk() ([]int32, bool) { if o == nil || IsNil(o.AuthData) { return nil, false } return o.AuthData, true } // HasAuthData returns a boolean if a field has been set. func (o *DeviceAuthnIOSAttestation) HasAuthData() bool { if o != nil && !IsNil(o.AuthData) { return true } return false } // SetAuthData gets a reference to the given []int32 and assigns it to the AuthData field. func (o *DeviceAuthnIOSAttestation) SetAuthData(v []int32) { o.AuthData = v } // GetFmt returns the Fmt field value if set, zero value otherwise. func (o *DeviceAuthnIOSAttestation) GetFmt() string { if o == nil || IsNil(o.Fmt) { var ret string return ret } return *o.Fmt } // GetFmtOk returns a tuple with the Fmt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DeviceAuthnIOSAttestation) GetFmtOk() (*string, bool) { if o == nil || IsNil(o.Fmt) { return nil, false } return o.Fmt, true } // HasFmt returns a boolean if a field has been set. func (o *DeviceAuthnIOSAttestation) HasFmt() bool { if o != nil && !IsNil(o.Fmt) { return true } return false } // SetFmt gets a reference to the given string and assigns it to the Fmt field. func (o *DeviceAuthnIOSAttestation) SetFmt(v string) { o.Fmt = &v } func (o DeviceAuthnIOSAttestation) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o DeviceAuthnIOSAttestation) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.AttStmt) { toSerialize["att_stmt"] = o.AttStmt } if !IsNil(o.AuthData) { toSerialize["auth_data"] = o.AuthData } if !IsNil(o.Fmt) { toSerialize["fmt"] = o.Fmt } for key, value := range o.AdditionalProperties { toSerialize[key] = value } return toSerialize, nil } func (o *DeviceAuthnIOSAttestation) UnmarshalJSON(data []byte) (err error) { varDeviceAuthnIOSAttestation := _DeviceAuthnIOSAttestation{} err = json.Unmarshal(data, &varDeviceAuthnIOSAttestation) if err != nil { return err } *o = DeviceAuthnIOSAttestation(varDeviceAuthnIOSAttestation) additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "att_stmt") delete(additionalProperties, "auth_data") delete(additionalProperties, "fmt") o.AdditionalProperties = additionalProperties } return err } type NullableDeviceAuthnIOSAttestation struct { value *DeviceAuthnIOSAttestation isSet bool } func (v NullableDeviceAuthnIOSAttestation) Get() *DeviceAuthnIOSAttestation { return v.value } func (v *NullableDeviceAuthnIOSAttestation) Set(val *DeviceAuthnIOSAttestation) { v.value = val v.isSet = true } func (v NullableDeviceAuthnIOSAttestation) IsSet() bool { return v.isSet } func (v *NullableDeviceAuthnIOSAttestation) Unset() { v.value = nil v.isSet = false } func NewNullableDeviceAuthnIOSAttestation(val *DeviceAuthnIOSAttestation) *NullableDeviceAuthnIOSAttestation { return &NullableDeviceAuthnIOSAttestation{value: val, isSet: true} } func (v NullableDeviceAuthnIOSAttestation) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableDeviceAuthnIOSAttestation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }