func (m *Model) Validate() error {
	if m.Theme == nil {
		return errors.New("theme is required")
	}
	if m.Type == "" {
		return errors.New("type is required")
	}
	if m.Files == nil {
		return errors.New("file list must not be nil")
	}
	if m.Theme.Attachments == nil {
		return errors.New("invalid theme")
	}
	return nil
}
// Validate validates that all of the data in the theme appears valid and self
// consistent. A nil return value means no errors were detected.
Validate validates that all of the data in the theme appears valid and self
consistent. A nil return value means no errors were detected.
// Validate validates that all of the data in the theme appears valid and self // consistent . A nil return value means no errors were detected .
func (m *Model) Validate() error {
	if m.Theme == nil {
		return errors.New("theme is required")
	}
	if m.Type == "" {
		return errors.New("type is required")
	}
	if m.Files == nil {
		return errors.New("file list must not be nil")
	}
	if m.Theme.Attachments == nil {
		return errors.New("invalid theme")
	}
	return nil
}
func ( m * Model ) Validate ( ) error { if m . Theme == nil { return errors . New ( " " ) } if m . Type == " " { return errors . New ( " " ) } if m . Files == nil { return errors . New ( " " ) } if m . Theme . Attachments == nil { return errors . New ( " " ) } return nil }
Validate validates that all of the data in the theme appears valid and self
consistent.
Validate validates that all of the data in the theme appears valid and self consistent .