MCPcopy Create free account
hub / github.com/QuantumNous/new-api / marshalSystemTaskJSON

Function marshalSystemTaskJSON

model/system_task.go:437–446  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

435}
436
437func marshalSystemTaskJSON(v any) (string, error) {
438 if v == nil {
439 return "", nil
440 }
441 data, err := common.Marshal(v)
442 if err != nil {
443 return "", err
444 }
445 return string(data), nil
446}
447
448func decodeSystemTaskJSONString(data string, v any) error {
449 if data == "" {

Callers 3

CreateSystemTaskFunction · 0.85
UpdateSystemTaskStateFunction · 0.85
FinishSystemTaskFunction · 0.85

Calls 1

MarshalFunction · 0.92

Tested by

no test coverage detected