// 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 (
	strfmt "github.com/go-openapi/strfmt"

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

// GetCorporationsCorporationIDDivisionsOKBody get_corporations_corporation_id_divisions_ok
//
// 200 ok object
// swagger:model getCorporationsCorporationIdDivisionsOKBody

type GetCorporationsCorporationIDDivisionsOKBody struct {

	// hangar
	Hangar GetCorporationsCorporationIDDivisionsOKBodyHangar `json:"hangar"`

	// wallet
	Wallet GetCorporationsCorporationIDDivisionsOKBodyWallet `json:"wallet"`
}

/* polymorph getCorporationsCorporationIdDivisionsOKBody hangar false */

/* polymorph getCorporationsCorporationIdDivisionsOKBody wallet false */

// Validate validates this get corporations corporation Id divisions o k body
func (m *GetCorporationsCorporationIDDivisionsOKBody) Validate(formats strfmt.Registry) error {
	var res []error

	if err := m.validateHangar(formats); err != nil {
		// prop
		res = append(res, err)
	}

	if err := m.validateWallet(formats); err != nil {
		// prop
		res = append(res, err)
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}

func (m *GetCorporationsCorporationIDDivisionsOKBody) validateHangar(formats strfmt.Registry) error {

	if swag.IsZero(m.Hangar) { // not required
		return nil
	}

	return nil
}

func (m *GetCorporationsCorporationIDDivisionsOKBody) validateWallet(formats strfmt.Registry) error {

	if swag.IsZero(m.Wallet) { // not required
		return nil
	}

	return nil
}

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

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