func (m *PrivateDepositAddressResponseResult) UnmarshalBinary(b []byte) error {
	var res PrivateDepositAddressResponseResult
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
UnmarshalBinary interface implementation
package models
import (
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
)
type PrivateDepositAddressResponse struct {
	Result *PrivateDepositAddressResponseResult `json:"result"`
}
func (m *PrivateDepositAddressResponse) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateResult(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *PrivateDepositAddressResponse) validateResult(formats strfmt.Registry) error {
	if err := validate.Required("result", "body", m.Result); err != nil {
		return err
	}
	if m.Result != nil {
		if err := m.Result.Validate(formats); err != nil {
			if ve, ok := err.(*errors.Validation); ok {
				return ve.ValidateName("result")
			}
			return err
		}
	}
	return nil
}
func (m *PrivateDepositAddressResponse) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
func (m *PrivateDepositAddressResponse) UnmarshalBinary(b []byte) error {
	var res PrivateDepositAddressResponse
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
type PrivateDepositAddressResponseResult struct {
	Address CurrencyAddress `json:"address"`
	CreationTimestamp Timestamp `json:"creation_timestamp"`
	Currency Currency `json:"currency"`
	Type WalletAddressType `json:"type"`
}
func (m *PrivateDepositAddressResponseResult) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateAddress(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateCreationTimestamp(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateCurrency(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateType(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *PrivateDepositAddressResponseResult) validateAddress(formats strfmt.Registry) error {
	if err := m.Address.Validate(formats); err != nil {
		if ve, ok := err.(*errors.Validation); ok {
			return ve.ValidateName("result" + "." + "address")
		}
		return err
	}
	return nil
}
func (m *PrivateDepositAddressResponseResult) validateCreationTimestamp(formats strfmt.Registry) error {
	if err := m.CreationTimestamp.Validate(formats); err != nil {
		if ve, ok := err.(*errors.Validation); ok {
			return ve.ValidateName("result" + "." + "creation_timestamp")
		}
		return err
	}
	return nil
}
func (m *PrivateDepositAddressResponseResult) validateCurrency(formats strfmt.Registry) error {
	if err := m.Currency.Validate(formats); err != nil {
		if ve, ok := err.(*errors.Validation); ok {
			return ve.ValidateName("result" + "." + "currency")
		}
		return err
	}
	return nil
}
func (m *PrivateDepositAddressResponseResult) validateType(formats strfmt.Registry) error {
	if err := m.Type.Validate(formats); err != nil {
		if ve, ok := err.(*errors.Validation); ok {
			return ve.ValidateName("result" + "." + "type")
		}
		return err
	}
	return nil
}
func (m *PrivateDepositAddressResponseResult) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}