MCPcopy Index your code
hub / github.com/apache/answer / ToJSONString

Method ToJSONString

internal/schema/email_template.go:50–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func (r *EmailCodeContent) ToJSONString() string {
51 codeBytes, _ := json.Marshal(r)
52 return string(codeBytes)
53}
54
55func (r *EmailCodeContent) FromJSONString(data string) error {
56 return json.Unmarshal([]byte(data), &r)

Calls

no outgoing calls

Tested by

no test coverage detected