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

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

package metrc_gw_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"
)

// Plant plant
//
// swagger:model Plant
type Plant struct {

	// growth phase
	GrowthPhase string `json:"GrowthPhase,omitempty"`

	// harvest count
	HarvestCount float64 `json:"HarvestCount,omitempty"`

	// Id
	ID float64 `json:"Id,omitempty"`

	// is on hold
	IsOnHold bool `json:"IsOnHold,omitempty"`

	// label
	Label string `json:"Label,omitempty"`

	// last modified
	LastModified string `json:"LastModified,omitempty"`

	// plant batch Id
	PlantBatchID float64 `json:"PlantBatchId,omitempty"`

	// plant batch name
	PlantBatchName string `json:"PlantBatchName,omitempty"`

	// plant batch type name
	PlantBatchTypeName string `json:"PlantBatchTypeName,omitempty"`

	// planted date
	PlantedDate string `json:"PlantedDate,omitempty"`

	// room Id
	RoomID float64 `json:"RoomId,omitempty"`

	// room name
	RoomName string `json:"RoomName,omitempty"`

	// state
	State string `json:"State,omitempty"`

	// strain Id
	StrainID float64 `json:"StrainId,omitempty"`

	// strain name
	StrainName string `json:"StrainName,omitempty"`

	// vegetative date
	VegetativeDate string `json:"VegetativeDate,omitempty"`
}

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

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

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