func (s *SubjectID) FromString(str string) (Subject, error) {
	s.ID = str
	return s, nil
}
FromString parses str and returns the Subject (SubjectID specifically).
package accesscontroller
import (
	"encoding/json"
	"fmt"
	"strings"
	pb "github.com/authorizer-tech/access-controller/genprotos/authorizer/accesscontroller/v1alpha1"
)
var ErrInvalidSubjectSetString = fmt.Errorf("the provided SubjectSet string is malformed")
type Object struct {
	Namespace string
	ID        string
}
type Subject interface {
	json.Marshaler
	String() string
	FromString(string) (Subject, error)
	Equals(interface{}) bool
	ToProto() *pb.Subject
}
type SubjectID struct {
	ID string `json:"id"`
}
func (s SubjectID) MarshalJSON() ([]byte, error) {
	return []byte(`"` + s.String() + `"`), nil
}
func (s *SubjectID) Equals(v interface{}) bool {
	uv, ok := v.(*SubjectID)
	if !ok {
		return false
	}
	return uv.ID == s.ID
}