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