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

// CentralRegistrationSource central registration source
//
// swagger:model centralRegistrationSource
type CentralRegistrationSource struct {

	// most recent referral url
	MostRecentReferralURL string `json:"most_recent_referral_url,omitempty"`

	// signup source
	SignupSource string `json:"signup_source,omitempty"`

	// utm campaign
	UtmCampaign string `json:"utm_campaign,omitempty"`

	// utm content
	UtmContent string `json:"utm_content,omitempty"`

	// utm medium
	UtmMedium string `json:"utm_medium,omitempty"`

	// utm source
	UtmSource string `json:"utm_source,omitempty"`

	// utm term
	UtmTerm string `json:"utm_term,omitempty"`

	// website referrer url
	WebsiteReferrerURL string `json:"website_referrer_url,omitempty"`
}

// Validate validates this central registration source
func (m *CentralRegistrationSource) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this central registration source based on context it is used
func (m *CentralRegistrationSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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