func (m *CreateInviteInput) UnmarshalBinary(b []byte) error {
	var res CreateInviteInput
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
UnmarshalBinary interface implementation
package models
import (
	"github.com/go-openapi/errors"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
)
type CreateInviteInput struct {
	Email *string `json:"email"`
	Expires *bool `json:"expires,omitempty"`
	GroupIds []string `json:"group_ids"`
}
func (m *CreateInviteInput) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateEmail(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateGroupIds(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *CreateInviteInput) validateEmail(formats strfmt.Registry) error {
	if err := validate.Required("email", "body", m.Email); err != nil {
		return err
	}
	return nil
}
func (m *CreateInviteInput) validateGroupIds(formats strfmt.Registry) error {
	if err := validate.Required("group_ids", "body", m.GroupIds); err != nil {
		return err
	}
	return nil
}
func (m *CreateInviteInput) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}