// 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 (
	"context"

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

// ServiceInstancePreviousValues service instance previous values
//
// swagger:model ServiceInstancePreviousValues
type ServiceInstancePreviousValues struct {

	// organization id
	OrganizationID string `json:"organization_id,omitempty"`

	// plan id
	PlanID string `json:"plan_id,omitempty"`

	// service id
	ServiceID string `json:"service_id,omitempty"`

	// space id
	SpaceID string `json:"space_id,omitempty"`
}

// Validate validates this service instance previous values
func (m *ServiceInstancePreviousValues) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this service instance previous values based on context it is used
func (m *ServiceInstancePreviousValues) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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