Home > @magiclane/maps-sdk > FileSortType > fromId
FileSortType.fromId() function
Convert a numeric ID to FileSortType enum value.
Signature:
function fromId(id: number): FileSortType;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
number |
The numeric ID |
Returns:
The corresponding FileSortType
Exceptions
Error if the ID is invalid