Class: FolderMapper
Constructors
new FolderMapper()
new FolderMapper():
FolderMapper
Returns
Methods
fromApi()
fromApi(
folder
,folderContent
?):Folder
Converts an API result to a Folder model.
Parameters
Parameter | Type |
---|---|
folder | FilteredFolderFragment | FolderFragment |
folderContent ? | Filesystem <Asset | Folder > |
Returns
Defined in
api/mapper/FolderMapper.ts:18 (opens in a new tab)
flattenFolderPath()
static
flattenFolderPath(options
):FolderPathEntry
[]
Flattens a folder path into an array of FolderPathEntry objects that are easier to work with.
Parameters
Parameter | Type |
---|---|
options | FlattenFolderPathOptions |