//UnmarshalJSON decodes the node from a json
UnmarshalJSON decodes the node from a json
// UnmarshalJSON decodes the node from a json
func (k *KnowledgeBaseNode) UnmarshalJSON(data []byte) error {
	m := &knowledgebaseNode{}
	err := json.Unmarshal(data, m)
	if err != nil {
		return err
	}
	k.UID = m.UID
	k.Word = []rune(m.Word)
	k.Name = m.Name
	k.Children = m.Children
	k.Resolved = m.Resolved
	k.Description = m.Description
	k.KBType = m.KBType
	return nil
}
func ( k * KnowledgeBaseNode ) UnmarshalJSON ( data [ ] byte ) error { m := & knowledgebaseNode { } err := json . Unmarshal ( data , m ) if err != nil { return err } k . UID = m . UID k . Word = [ ] rune ( m . Word ) k . Name = m . Name k . Children = m . Children k . Resolved = m . Resolved k . Description = m . Description k . KBType = m . KBType return nil }
UnmarshalJSON decodes the node from a json
UnmarshalJSON decodes the node from a json