// Code generated by go-swagger; DO NOT EDIT.

// (c) 2012-2020 by Taxnexus, Inc.
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed

package sfgate_models

import (
	"context"

	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag/jsonutils"
)

// PromptTag A prompt tag
//
// swagger:model promptTag
type PromptTag struct {

	// The ID of the user who created the prompt tag
	CreatedByID *string `json:"CreatedByID,omitempty"`

	// The date the prompt tag was created
	CreatedDate *string `json:"CreatedDate,omitempty"`

	// Record Id
	ID string `json:"ID,omitempty"`

	// The ID of the user who last modified the prompt tag
	LastModifiedByID *string `json:"LastModifiedByID,omitempty"`

	// The date the prompt tag was last modified
	LastModifiedDate *string `json:"LastModifiedDate,omitempty"`

	// The prompt tag name
	Name *string `json:"Name,omitempty"`
}

// Validate validates this prompt tag
func (m *PromptTag) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this prompt tag based on context it is used
func (m *PromptTag) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *PromptTag) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return jsonutils.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *PromptTag) UnmarshalBinary(b []byte) error {
	var res PromptTag
	if err := jsonutils.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
