mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
649 lines
18 KiB
Go
649 lines
18 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the CaptableCaptableOption type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &CaptableCaptableOption{}
|
|
|
|
// CaptableCaptableOption struct for CaptableCaptableOption
|
|
type CaptableCaptableOption struct {
|
|
// CliffYears is how many years before any of the grant vests.
|
|
CliffYears *int64 `json:"cliffYears,omitempty"`
|
|
// EquityPlanID is the plan the grant draws from.
|
|
EquityPlanId *string `json:"equityPlanId,omitempty"`
|
|
// EquityPlanName is that plan's name.
|
|
EquityPlanName *string `json:"equityPlanName,omitempty"`
|
|
// ExercisePrice is the strike price per share.
|
|
ExercisePrice *float64 `json:"exercisePrice,omitempty"`
|
|
// ExpirationDate is the ISO date the grant expires.
|
|
ExpirationDate *string `json:"expirationDate,omitempty"`
|
|
// GrantID is the grant number, unique within the company.
|
|
GrantId *string `json:"grantId,omitempty"`
|
|
// ID is the option id.
|
|
Id *string `json:"id,omitempty"`
|
|
// IssueDate is the ISO date the grant was issued.
|
|
IssueDate *string `json:"issueDate,omitempty"`
|
|
// Quantity is how many shares the grant covers.
|
|
Quantity *int64 `json:"quantity,omitempty"`
|
|
// StakeholderID is the grantee.
|
|
StakeholderId *string `json:"stakeholderId,omitempty"`
|
|
// StakeholderName is that grantee's name.
|
|
StakeholderName *string `json:"stakeholderName,omitempty"`
|
|
// Status is the grant's state, e.g. DRAFT, ACTIVE, EXERCISED, EXPIRED or CANCELLED. Only non-terminal grants dilute the cap table.
|
|
Status *string `json:"status,omitempty"`
|
|
// Type is the grant kind, ISO or NSO.
|
|
Type *string `json:"type,omitempty"`
|
|
// VestingYears is the total vesting period in years.
|
|
VestingYears *int64 `json:"vestingYears,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _CaptableCaptableOption CaptableCaptableOption
|
|
|
|
// NewCaptableCaptableOption instantiates a new CaptableCaptableOption 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 NewCaptableCaptableOption() *CaptableCaptableOption {
|
|
this := CaptableCaptableOption{}
|
|
return &this
|
|
}
|
|
|
|
// NewCaptableCaptableOptionWithDefaults instantiates a new CaptableCaptableOption 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 NewCaptableCaptableOptionWithDefaults() *CaptableCaptableOption {
|
|
this := CaptableCaptableOption{}
|
|
return &this
|
|
}
|
|
|
|
// GetCliffYears returns the CliffYears field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableOption) GetCliffYears() int64 {
|
|
if o == nil || IsNil(o.CliffYears) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.CliffYears
|
|
}
|
|
|
|
// GetCliffYearsOk returns a tuple with the CliffYears field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableOption) GetCliffYearsOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.CliffYears) {
|
|
return nil, false
|
|
}
|
|
return o.CliffYears, true
|
|
}
|
|
|
|
// HasCliffYears returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOption) HasCliffYears() bool {
|
|
if o != nil && !IsNil(o.CliffYears) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCliffYears gets a reference to the given int64 and assigns it to the CliffYears field.
|
|
func (o *CaptableCaptableOption) SetCliffYears(v int64) {
|
|
o.CliffYears = &v
|
|
}
|
|
|
|
// GetEquityPlanId returns the EquityPlanId field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableOption) GetEquityPlanId() string {
|
|
if o == nil || IsNil(o.EquityPlanId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.EquityPlanId
|
|
}
|
|
|
|
// GetEquityPlanIdOk returns a tuple with the EquityPlanId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableOption) GetEquityPlanIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.EquityPlanId) {
|
|
return nil, false
|
|
}
|
|
return o.EquityPlanId, true
|
|
}
|
|
|
|
// HasEquityPlanId returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOption) HasEquityPlanId() bool {
|
|
if o != nil && !IsNil(o.EquityPlanId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEquityPlanId gets a reference to the given string and assigns it to the EquityPlanId field.
|
|
func (o *CaptableCaptableOption) SetEquityPlanId(v string) {
|
|
o.EquityPlanId = &v
|
|
}
|
|
|
|
// GetEquityPlanName returns the EquityPlanName field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableOption) GetEquityPlanName() string {
|
|
if o == nil || IsNil(o.EquityPlanName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.EquityPlanName
|
|
}
|
|
|
|
// GetEquityPlanNameOk returns a tuple with the EquityPlanName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableOption) GetEquityPlanNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.EquityPlanName) {
|
|
return nil, false
|
|
}
|
|
return o.EquityPlanName, true
|
|
}
|
|
|
|
// HasEquityPlanName returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOption) HasEquityPlanName() bool {
|
|
if o != nil && !IsNil(o.EquityPlanName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEquityPlanName gets a reference to the given string and assigns it to the EquityPlanName field.
|
|
func (o *CaptableCaptableOption) SetEquityPlanName(v string) {
|
|
o.EquityPlanName = &v
|
|
}
|
|
|
|
// GetExercisePrice returns the ExercisePrice field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableOption) GetExercisePrice() float64 {
|
|
if o == nil || IsNil(o.ExercisePrice) {
|
|
var ret float64
|
|
return ret
|
|
}
|
|
return *o.ExercisePrice
|
|
}
|
|
|
|
// GetExercisePriceOk returns a tuple with the ExercisePrice field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableOption) GetExercisePriceOk() (*float64, bool) {
|
|
if o == nil || IsNil(o.ExercisePrice) {
|
|
return nil, false
|
|
}
|
|
return o.ExercisePrice, true
|
|
}
|
|
|
|
// HasExercisePrice returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOption) HasExercisePrice() bool {
|
|
if o != nil && !IsNil(o.ExercisePrice) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetExercisePrice gets a reference to the given float64 and assigns it to the ExercisePrice field.
|
|
func (o *CaptableCaptableOption) SetExercisePrice(v float64) {
|
|
o.ExercisePrice = &v
|
|
}
|
|
|
|
// GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableOption) GetExpirationDate() string {
|
|
if o == nil || IsNil(o.ExpirationDate) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ExpirationDate
|
|
}
|
|
|
|
// GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableOption) GetExpirationDateOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ExpirationDate) {
|
|
return nil, false
|
|
}
|
|
return o.ExpirationDate, true
|
|
}
|
|
|
|
// HasExpirationDate returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOption) HasExpirationDate() bool {
|
|
if o != nil && !IsNil(o.ExpirationDate) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetExpirationDate gets a reference to the given string and assigns it to the ExpirationDate field.
|
|
func (o *CaptableCaptableOption) SetExpirationDate(v string) {
|
|
o.ExpirationDate = &v
|
|
}
|
|
|
|
// GetGrantId returns the GrantId field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableOption) GetGrantId() string {
|
|
if o == nil || IsNil(o.GrantId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.GrantId
|
|
}
|
|
|
|
// GetGrantIdOk returns a tuple with the GrantId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableOption) GetGrantIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.GrantId) {
|
|
return nil, false
|
|
}
|
|
return o.GrantId, true
|
|
}
|
|
|
|
// HasGrantId returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOption) HasGrantId() bool {
|
|
if o != nil && !IsNil(o.GrantId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGrantId gets a reference to the given string and assigns it to the GrantId field.
|
|
func (o *CaptableCaptableOption) SetGrantId(v string) {
|
|
o.GrantId = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableOption) GetId() string {
|
|
if o == nil || IsNil(o.Id) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Id
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableOption) GetIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Id) {
|
|
return nil, false
|
|
}
|
|
return o.Id, true
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOption) HasId() bool {
|
|
if o != nil && !IsNil(o.Id) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *CaptableCaptableOption) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetIssueDate returns the IssueDate field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableOption) GetIssueDate() string {
|
|
if o == nil || IsNil(o.IssueDate) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.IssueDate
|
|
}
|
|
|
|
// GetIssueDateOk returns a tuple with the IssueDate field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableOption) GetIssueDateOk() (*string, bool) {
|
|
if o == nil || IsNil(o.IssueDate) {
|
|
return nil, false
|
|
}
|
|
return o.IssueDate, true
|
|
}
|
|
|
|
// HasIssueDate returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOption) HasIssueDate() bool {
|
|
if o != nil && !IsNil(o.IssueDate) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIssueDate gets a reference to the given string and assigns it to the IssueDate field.
|
|
func (o *CaptableCaptableOption) SetIssueDate(v string) {
|
|
o.IssueDate = &v
|
|
}
|
|
|
|
// GetQuantity returns the Quantity field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableOption) GetQuantity() int64 {
|
|
if o == nil || IsNil(o.Quantity) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Quantity
|
|
}
|
|
|
|
// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableOption) GetQuantityOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Quantity) {
|
|
return nil, false
|
|
}
|
|
return o.Quantity, true
|
|
}
|
|
|
|
// HasQuantity returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOption) HasQuantity() bool {
|
|
if o != nil && !IsNil(o.Quantity) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetQuantity gets a reference to the given int64 and assigns it to the Quantity field.
|
|
func (o *CaptableCaptableOption) SetQuantity(v int64) {
|
|
o.Quantity = &v
|
|
}
|
|
|
|
// GetStakeholderId returns the StakeholderId field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableOption) GetStakeholderId() string {
|
|
if o == nil || IsNil(o.StakeholderId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.StakeholderId
|
|
}
|
|
|
|
// GetStakeholderIdOk returns a tuple with the StakeholderId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableOption) GetStakeholderIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.StakeholderId) {
|
|
return nil, false
|
|
}
|
|
return o.StakeholderId, true
|
|
}
|
|
|
|
// HasStakeholderId returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOption) HasStakeholderId() bool {
|
|
if o != nil && !IsNil(o.StakeholderId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStakeholderId gets a reference to the given string and assigns it to the StakeholderId field.
|
|
func (o *CaptableCaptableOption) SetStakeholderId(v string) {
|
|
o.StakeholderId = &v
|
|
}
|
|
|
|
// GetStakeholderName returns the StakeholderName field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableOption) GetStakeholderName() string {
|
|
if o == nil || IsNil(o.StakeholderName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.StakeholderName
|
|
}
|
|
|
|
// GetStakeholderNameOk returns a tuple with the StakeholderName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableOption) GetStakeholderNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.StakeholderName) {
|
|
return nil, false
|
|
}
|
|
return o.StakeholderName, true
|
|
}
|
|
|
|
// HasStakeholderName returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOption) HasStakeholderName() bool {
|
|
if o != nil && !IsNil(o.StakeholderName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStakeholderName gets a reference to the given string and assigns it to the StakeholderName field.
|
|
func (o *CaptableCaptableOption) SetStakeholderName(v string) {
|
|
o.StakeholderName = &v
|
|
}
|
|
|
|
// GetStatus returns the Status field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableOption) GetStatus() string {
|
|
if o == nil || IsNil(o.Status) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Status
|
|
}
|
|
|
|
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableOption) GetStatusOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Status) {
|
|
return nil, false
|
|
}
|
|
return o.Status, true
|
|
}
|
|
|
|
// HasStatus returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOption) HasStatus() bool {
|
|
if o != nil && !IsNil(o.Status) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStatus gets a reference to the given string and assigns it to the Status field.
|
|
func (o *CaptableCaptableOption) SetStatus(v string) {
|
|
o.Status = &v
|
|
}
|
|
|
|
// GetType returns the Type field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableOption) 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 *CaptableCaptableOption) 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 *CaptableCaptableOption) 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 *CaptableCaptableOption) SetType(v string) {
|
|
o.Type = &v
|
|
}
|
|
|
|
// GetVestingYears returns the VestingYears field value if set, zero value otherwise.
|
|
func (o *CaptableCaptableOption) GetVestingYears() int64 {
|
|
if o == nil || IsNil(o.VestingYears) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.VestingYears
|
|
}
|
|
|
|
// GetVestingYearsOk returns a tuple with the VestingYears field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *CaptableCaptableOption) GetVestingYearsOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.VestingYears) {
|
|
return nil, false
|
|
}
|
|
return o.VestingYears, true
|
|
}
|
|
|
|
// HasVestingYears returns a boolean if a field has been set.
|
|
func (o *CaptableCaptableOption) HasVestingYears() bool {
|
|
if o != nil && !IsNil(o.VestingYears) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVestingYears gets a reference to the given int64 and assigns it to the VestingYears field.
|
|
func (o *CaptableCaptableOption) SetVestingYears(v int64) {
|
|
o.VestingYears = &v
|
|
}
|
|
|
|
func (o CaptableCaptableOption) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o CaptableCaptableOption) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.CliffYears) {
|
|
toSerialize["cliffYears"] = o.CliffYears
|
|
}
|
|
if !IsNil(o.EquityPlanId) {
|
|
toSerialize["equityPlanId"] = o.EquityPlanId
|
|
}
|
|
if !IsNil(o.EquityPlanName) {
|
|
toSerialize["equityPlanName"] = o.EquityPlanName
|
|
}
|
|
if !IsNil(o.ExercisePrice) {
|
|
toSerialize["exercisePrice"] = o.ExercisePrice
|
|
}
|
|
if !IsNil(o.ExpirationDate) {
|
|
toSerialize["expirationDate"] = o.ExpirationDate
|
|
}
|
|
if !IsNil(o.GrantId) {
|
|
toSerialize["grantId"] = o.GrantId
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.IssueDate) {
|
|
toSerialize["issueDate"] = o.IssueDate
|
|
}
|
|
if !IsNil(o.Quantity) {
|
|
toSerialize["quantity"] = o.Quantity
|
|
}
|
|
if !IsNil(o.StakeholderId) {
|
|
toSerialize["stakeholderId"] = o.StakeholderId
|
|
}
|
|
if !IsNil(o.StakeholderName) {
|
|
toSerialize["stakeholderName"] = o.StakeholderName
|
|
}
|
|
if !IsNil(o.Status) {
|
|
toSerialize["status"] = o.Status
|
|
}
|
|
if !IsNil(o.Type) {
|
|
toSerialize["type"] = o.Type
|
|
}
|
|
if !IsNil(o.VestingYears) {
|
|
toSerialize["vestingYears"] = o.VestingYears
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *CaptableCaptableOption) UnmarshalJSON(data []byte) (err error) {
|
|
varCaptableCaptableOption := _CaptableCaptableOption{}
|
|
|
|
err = json.Unmarshal(data, &varCaptableCaptableOption)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = CaptableCaptableOption(varCaptableCaptableOption)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "cliffYears")
|
|
delete(additionalProperties, "equityPlanId")
|
|
delete(additionalProperties, "equityPlanName")
|
|
delete(additionalProperties, "exercisePrice")
|
|
delete(additionalProperties, "expirationDate")
|
|
delete(additionalProperties, "grantId")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "issueDate")
|
|
delete(additionalProperties, "quantity")
|
|
delete(additionalProperties, "stakeholderId")
|
|
delete(additionalProperties, "stakeholderName")
|
|
delete(additionalProperties, "status")
|
|
delete(additionalProperties, "type")
|
|
delete(additionalProperties, "vestingYears")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableCaptableCaptableOption struct {
|
|
value *CaptableCaptableOption
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableCaptableCaptableOption) Get() *CaptableCaptableOption {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableOption) Set(val *CaptableCaptableOption) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableCaptableCaptableOption) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableOption) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableCaptableCaptableOption(val *CaptableCaptableOption) *NullableCaptableCaptableOption {
|
|
return &NullableCaptableCaptableOption{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableCaptableCaptableOption) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableCaptableCaptableOption) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|