func (fc *FileCollection) UnmarshalJSON(data []byte) error {
	escaped := make(map[string]*Attachment)
	if err := json.Unmarshal(data, &escaped); err != nil {
		return err
	}
	fc.files = make(map[string]*Attachment)
	fc.views = make([]*FileCollectionView, 0)
	for escapedName, attachment := range escaped {
		filename := UnescapeFilename(escapedName)
		fc.files[filename] = attachment
	}
	return nil
}
// UnmarshalJSON implements the json.Unmarshaler interface for the FileCollection type.
UnmarshalJSON implements the json.Unmarshaler interface for the FileCollection type.
// UnmarshalJSON implements the json . Unmarshaler interface for the FileCollection type .
func (fc *FileCollection) UnmarshalJSON(data []byte) error {
	escaped := make(map[string]*Attachment)
	if err := json.Unmarshal(data, &escaped); err != nil {
		return err
	}
	fc.files = make(map[string]*Attachment)
	fc.views = make([]*FileCollectionView, 0)
	for escapedName, attachment := range escaped {
		filename := UnescapeFilename(escapedName)
		fc.files[filename] = attachment
	}
	return nil
}
func ( fc * FileCollection ) UnmarshalJSON ( data [ ] byte ) error { escaped := make ( map [ string ] * Attachment ) if err := json . Unmarshal ( data , & escaped ) ; err != nil { return err } fc . files = make ( map [ string ] * Attachment ) fc . views = make ( [ ] * FileCollectionView , 0 ) for escapedName , attachment := range escaped { filename := UnescapeFilename ( escapedName ) fc . files [ filename ] = attachment } return nil }
UnmarshalJSON implements the json.Unmarshaler interface for the FileCollection type.
UnmarshalJSON implements the json . Unmarshaler interface for the FileCollection type .