The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.
/*
BoxLite
BoxLite AI platform API Docs
API version: 1.0
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package apiclient
import (
"encoding/json"
"time"
"fmt"
)
// checks if the OnboardingDto type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &OnboardingDto{}
// OnboardingDto struct for OnboardingDto
type OnboardingDto struct {
UseCase string `json:"useCase"`
Note string `json:"note"`
SubmittedBy string `json:"submittedBy"`
SubmittedAt time.Time `json:"submittedAt"`
AdditionalProperties map[string]interface{}
}
type _OnboardingDto OnboardingDto
// NewOnboardingDto instantiates a new OnboardingDto 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 NewOnboardingDto(useCase string, note string, submittedBy string, submittedAt time.Time) *OnboardingDto {
this := OnboardingDto{}
this.UseCase = useCase
this.Note = note
this.SubmittedBy = submittedBy
this.SubmittedAt = submittedAt
return &this
}
// NewOnboardingDtoWithDefaults instantiates a new OnboardingDto 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 NewOnboardingDtoWithDefaults() *OnboardingDto {
this := OnboardingDto{}
return &this
}
// GetUseCase returns the UseCase field value
func (o *OnboardingDto) GetUseCase() string {
if o == nil {
var ret string
return ret
}
return o.UseCase
}
// GetUseCaseOk returns a tuple with the UseCase field value
// and a boolean to check if the value has been set.
func (o *OnboardingDto) GetUseCaseOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.UseCase, true
}
// SetUseCase sets field value
func (o *OnboardingDto) SetUseCase(v string) {
o.UseCase = v
}
// GetNote returns the Note field value
func (o *OnboardingDto) GetNote() string {
if o == nil {
var ret string
return ret
}
return o.Note
}
// GetNoteOk returns a tuple with the Note field value
// and a boolean to check if the value has been set.
func (o *OnboardingDto) GetNoteOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Note, true
}
// SetNote sets field value
func (o *OnboardingDto) SetNote(v string) {
o.Note = v
}
// GetSubmittedBy returns the SubmittedBy field value
func (o *OnboardingDto) GetSubmittedBy() string {
if o == nil {
var ret string
return ret
}
return o.SubmittedBy
}
// GetSubmittedByOk returns a tuple with the SubmittedBy field value
// and a boolean to check if the value has been set.
func (o *OnboardingDto) GetSubmittedByOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.SubmittedBy, true
}
// SetSubmittedBy sets field value
func (o *OnboardingDto) SetSubmittedBy(v string) {
o.SubmittedBy = v
}
// GetSubmittedAt returns the SubmittedAt field value
func (o *OnboardingDto) GetSubmittedAt() time.Time {
if o == nil {
var ret time.Time
return ret
}
return o.SubmittedAt
}
// GetSubmittedAtOk returns a tuple with the SubmittedAt field value
// and a boolean to check if the value has been set.
func (o *OnboardingDto) GetSubmittedAtOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return &o.SubmittedAt, true
}
// SetSubmittedAt sets field value
func (o *OnboardingDto) SetSubmittedAt(v time.Time) {
o.SubmittedAt = v
}
func (o OnboardingDto) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o OnboardingDto) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["useCase"] = o.UseCase
toSerialize["note"] = o.Note
toSerialize["submittedBy"] = o.SubmittedBy
toSerialize["submittedAt"] = o.SubmittedAt
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *OnboardingDto) UnmarshalJSON(data []byte) (err error) {
// This validates that all required properties are included in the JSON object
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"useCase",
"note",
"submittedBy",
"submittedAt",
}
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err;
}
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
varOnboardingDto := _OnboardingDto{}
err = json.Unmarshal(data, &varOnboardingDto)
if err != nil {
return err
}
*o = OnboardingDto(varOnboardingDto)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "useCase")
delete(additionalProperties, "note")
delete(additionalProperties, "submittedBy")
delete(additionalProperties, "submittedAt")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableOnboardingDto struct {
value *OnboardingDto
isSet bool
}
func (v NullableOnboardingDto) Get() *OnboardingDto {
return v.value
}
func (v *NullableOnboardingDto) Set(val *OnboardingDto) {
v.value = val
v.isSet = true
}
func (v NullableOnboardingDto) IsSet() bool {
return v.isSet
}
func (v *NullableOnboardingDto) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableOnboardingDto(val *OnboardingDto) *NullableOnboardingDto {
return &NullableOnboardingDto{value: val, isSet: true}
}
func (v NullableOnboardingDto) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableOnboardingDto) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}