/*
 * OpenAPI Petstore
 *
 * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
 *
 * API version: 1.0.0
 * Generated by: OpenAPI Generator (https://openapi-generator.tech)
 */

package petstoreserver


import (
	"time"
	"encoding/json"
)



// OrderInfo - An order info for a pets from the pet store
type OrderInfo struct {

	PetId int64 `json:"petId,omitempty"`

	Quantity int32 `json:"quantity,omitempty"`

	ShipDate time.Time `json:"shipDate,omitempty"`
}

// UnmarshalJSON sets *m to a copy of data while respecting defaults if specified.
func (m *OrderInfo) UnmarshalJSON(data []byte) error {

	type Alias OrderInfo // To avoid infinite recursion
    return json.Unmarshal(data, (*Alias)(m))
}

// AssertOrderInfoRequired checks if the required fields are not zero-ed
func AssertOrderInfoRequired(obj OrderInfo) error {
	return nil
}

// AssertOrderInfoConstraints checks if the values respects the defined constraints
func AssertOrderInfoConstraints(obj OrderInfo) error {
	return nil
}
