Home > @magiclane/maps-sdk > ExtraInfo > getByKey
ExtraInfo.getByKey() method
Retrieves a value by key from the extra info.
Automatically converts string representations of booleans and numbers to their native types.
Signature:
getByKey(key: string): string | number | boolean | null;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
string |
The key to look up. |
Returns:
string | number | boolean | null
The value (as string, number, or boolean), or null if not found.