// Code generated by go-swagger; DO NOT EDIT.

package model

// 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/errors"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
)

// CentralGetMspCustomerResp will delete
//
// swagger:model centralGetMspCustomerResp
type CentralGetMspCustomerResp struct {

	// effected at
	// Format: date-time
	EffectedAt strfmt.DateTime `json:"effected_at,omitempty"`

	// logo url
	LogoURL string `json:"logo_url,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// website
	Website string `json:"website,omitempty"`
}

// Validate validates this central get msp customer resp
func (m *CentralGetMspCustomerResp) Validate(formats strfmt.Registry) error {
	var res []error

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

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

func (m *CentralGetMspCustomerResp) validateEffectedAt(formats strfmt.Registry) error {
	if swag.IsZero(m.EffectedAt) { // not required
		return nil
	}

	if err := validate.FormatOf("effected_at", "body", "date-time", m.EffectedAt.String(), formats); err != nil {
		return err
	}

	return nil
}

// ContextValidate validates this central get msp customer resp based on context it is used
func (m *CentralGetMspCustomerResp) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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