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

package components

import (
	"github.com/censys/censys-sdk-go/internal/utils"
	"time"
)

type HostTimeline struct {
	Events    []HostTimelineEventAsset `json:"events"`
	ScannedTo time.Time                `json:"scanned_to"`
}

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

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

func (o *HostTimeline) GetEvents() []HostTimelineEventAsset {
	if o == nil {
		return nil
	}
	return o.Events
}

func (o *HostTimeline) GetScannedTo() time.Time {
	if o == nil {
		return time.Time{}
	}
	return o.ScannedTo
}
