goap/nsSchema.go
mStar 8706a19357 Current namespaces done
Namespaces Litepub, Misskey, Ostatus, Schema and W3Vcard are done
Indicated in constants that SCHEMA_PROPERTYVALUE is an object type, not
attribute name
2024-08-01 18:27:08 +02:00

18 lines
367 B
Go

package goap
type ValueData struct {
Next BaseApChain
Value ValueValue[string]
}
func (namedata *ValueData) GetSelfOrBase() (BaseApChain, bool) {
return namedata.Next, true
}
func (namedata *ValueData) MarshalToMap() map[string]any {
return appendWithKey(
namedata.Next.MarshalToMap(),
KEY_SCHEMA_VALUE,
[]map[string]any{namedata.Value.Marshal()},
)
}