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