// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package shared

import (
	"github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils"
	"time"
)

type SourceSmartwaiverUpdate struct {
	// You can retrieve your token by visiting your dashboard then click on My Account then click on API keys.
	APIKey     string    `json:"api_key"`
	StartDate  *string   `default:"2017-01-24 13:12:29" json:"start_date"`
	StartDate2 time.Time `json:"start_date_2"`
}

func (s SourceSmartwaiverUpdate) MarshalJSON() ([]byte, error) {
	return utils.MarshalJSON(s, "", false)
}

func (s *SourceSmartwaiverUpdate) UnmarshalJSON(data []byte) error {
	if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
		return err
	}
	return nil
}

func (o *SourceSmartwaiverUpdate) GetAPIKey() string {
	if o == nil {
		return ""
	}
	return o.APIKey
}

func (o *SourceSmartwaiverUpdate) GetStartDate() *string {
	if o == nil {
		return nil
	}
	return o.StartDate
}

func (o *SourceSmartwaiverUpdate) GetStartDate2() time.Time {
	if o == nil {
		return time.Time{}
	}
	return o.StartDate2
}
