lib/api/metrc-gw/metrc_gw_models/plant_batch.go

108 lines
2.4 KiB
Go
Raw Normal View History

2021-01-08 17:40:28 +00:00
// Code generated by go-swagger; DO NOT EDIT.
2021-01-19 16:58:40 +00:00
// All Code Copyright(c) 2018-2021 by Taxnexus, Inc.
2021-01-08 17:40:28 +00:00
// 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"
)
// PlantBatch plant batch
//
// swagger:model PlantBatch
type PlantBatch struct {
// count
Count float64 `json:"Count,omitempty"`
// destroyed count
DestroyedCount float64 `json:"DestroyedCount,omitempty"`
// harvested count
HarvestedCount float64 `json:"HarvestedCount,omitempty"`
// Id
ID float64 `json:"Id,omitempty"`
// last modified
LastModified string `json:"LastModified,omitempty"`
// live count
LiveCount float64 `json:"LiveCount,omitempty"`
// name
Name string `json:"Name,omitempty"`
// packaged count
PackagedCount float64 `json:"PackagedCount,omitempty"`
// patient license number
PatientLicenseNumber string `json:"PatientLicenseNumber,omitempty"`
// planted date
PlantedDate string `json:"PlantedDate,omitempty"`
// room Id
RoomID string `json:"RoomId,omitempty"`
// room name
RoomName string `json:"RoomName,omitempty"`
// source package Id
SourcePackageID float64 `json:"SourcePackageId,omitempty"`
// source package label
SourcePackageLabel string `json:"SourcePackageLabel,omitempty"`
// source plant Id
SourcePlantID float64 `json:"SourcePlantId,omitempty"`
// source plant label
SourcePlantLabel string `json:"SourcePlantLabel,omitempty"`
// strain Id
StrainID float64 `json:"StrainId,omitempty"`
// strain name
StrainName string `json:"StrainName,omitempty"`
// tracked count
TrackedCount float64 `json:"TrackedCount,omitempty"`
// type
Type string `json:"Type,omitempty"`
// untracked count
UntrackedCount float64 `json:"UntrackedCount,omitempty"`
}
// Validate validates this plant batch
func (m *PlantBatch) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *PlantBatch) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *PlantBatch) UnmarshalBinary(b []byte) error {
var res PlantBatch
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}