MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / ToJson

Method ToJson

cli/internal/biz/workspace/model.go:520–526  ·  view source on GitHub ↗

把结构化对象转换为string

()

Source from the content-addressed store, hash-verified

518
519// 把结构化对象转换为string
520func (instance *WorkspaceExtend) ToJson() string {
521
522 d, err := json.Marshal(&instance)
523 common.CheckError(err)
524
525 return string(d)
526}
527
528func (instance *WorkspaceExtend) IsNotNil() bool {
529 return !instance.IsNil()

Callers 3

FeeadbackExtendFunction · 0.80
Feedback_FinishFunction · 0.80
Send_WorkspaceInfoFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected