MCPcopy Create free account
hub / github.com/Monibuca/engine / MarshalJSON

Method MarshalJSON

config/config.go:96–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94}
95
96func (config *Config) MarshalJSON() ([]byte, error) {
97 if config.propsMap == nil {
98 return json.Marshal(config.GetValue())
99 }
100 return json.Marshal(config.propsMap)
101}
102
103func (config *Config) GetValue() any {
104 return config.Ptr.Interface()

Callers

nothing calls this directly

Calls 2

GetValueMethod · 0.95
MarshalMethod · 0.65

Tested by

no test coverage detected