lib/api/members/members_models/prompt_category.go

70 lines
1.7 KiB
Go

// 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 members_models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// PromptCategory A prompt category
//
// swagger:model promptCategory
type PromptCategory struct {
// The ID of the user who created the prompt category
CreatedByID string `json:"CreatedByID,omitempty"`
// The date the prompt category was created
CreatedDate string `json:"CreatedDate,omitempty"`
// Record Id
ID string `json:"ID,omitempty"`
// The ID of the user who last modified the prompt category
LastModifiedByID string `json:"LastModifiedByID,omitempty"`
// The date the prompt category was last modified
LastModifiedDate string `json:"LastModifiedDate,omitempty"`
// The prompt category name
Name string `json:"Name,omitempty"`
}
// Validate validates this prompt category
func (m *PromptCategory) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this prompt category based on context it is used
func (m *PromptCategory) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *PromptCategory) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *PromptCategory) UnmarshalBinary(b []byte) error {
var res PromptCategory
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}