MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / MarshalJSON

Method MarshalJSON

service/permit-type/type.go:11–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9type PermitType int
10
11func (p PermitType) MarshalJSON() ([]byte, error) {
12 return json.Marshal(p.Name())
13}
14
15func (p PermitType) Target(name string, label string) *Target {
16 return &Target{

Callers

nothing calls this directly

Calls 2

NameMethod · 0.95
MarshalMethod · 0.80

Tested by

no test coverage detected