Example #1
0
func (this *NetworkList) UnmarshalJSON(data []byte) error {
	strlist, err := serialjson.UnmarshalStringList(data)
	if err != nil {
		return err
	}
	*this = NewNetworkList(strlist)
	return nil
}
Example #2
0
func (this *TagList) UnmarshalJSON(data []byte) error {
	tags, err := serialjson.UnmarshalStringList(data)
	if err != nil {
		return err
	}
	*this = NewTagList(tags)
	return nil
}