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

package models

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// Snippet snippet
//
// swagger:model snippet
type Snippet struct {

	// general
	General string `json:"general,omitempty"`

	// general position
	GeneralPosition string `json:"general_position,omitempty"`

	// goal
	Goal string `json:"goal,omitempty"`

	// goal position
	GoalPosition string `json:"goal_position,omitempty"`

	// id
	ID int32 `json:"id,omitempty"`

	// site id
	SiteID string `json:"site_id,omitempty"`

	// title
	Title string `json:"title,omitempty"`
}

// Validate validates this snippet
func (m *Snippet) Validate(formats strfmt.Registry) error {
	return nil
}

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

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