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

package ops

// 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"
)

// EntitySeriesMonthlyTrend entity series monthly trend
//
// swagger:model entity.SeriesMonthlyTrend
type EntitySeriesMonthlyTrend struct {

	// month
	Month string `json:"month,omitempty"`

	// series
	Series string `json:"series,omitempty"`

	// value
	Value int64 `json:"value,omitempty"`
}

// Validate validates this entity series monthly trend
func (m *EntitySeriesMonthlyTrend) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this entity series monthly trend based on context it is used
func (m *EntitySeriesMonthlyTrend) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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