func (v *FileCollectionView) UnmarshalJSON(data []byte) error {
	v.members = make(map[string]*Attachment)
	var names []string
	if err := json.Unmarshal(data, &names); err != nil {
		return errors.Wrap(err, "failed to unmarshal file collection view")
	}
	for _, filename := range names {
		v.members[filename] = nil
	}
	return nil
}
// UnmarshalJSON implements the json.Unmarshaler interface for the FileCollectionView type.
UnmarshalJSON implements the json.Unmarshaler interface for the FileCollectionView type.
// UnmarshalJSON implements the json . Unmarshaler interface for the FileCollectionView type .
func (v *FileCollectionView) UnmarshalJSON(data []byte) error {
	v.members = make(map[string]*Attachment)
	var names []string
	if err := json.Unmarshal(data, &names); err != nil {
		return errors.Wrap(err, "failed to unmarshal file collection view")
	}
	for _, filename := range names {
		v.members[filename] = nil
	}
	return nil
}
func ( v * FileCollectionView ) UnmarshalJSON ( data [ ] byte ) error { v . members = make ( map [ string ] * Attachment ) var names [ ] string if err := json . Unmarshal ( data , & names ) ; err != nil { return errors . Wrap ( err , " " ) } for _ , filename := range names { v . members [ filename ] = nil } return nil }
UnmarshalJSON implements the json.Unmarshaler interface for the FileCollectionView type.
UnmarshalJSON implements the json . Unmarshaler interface for the FileCollectionView type .