Enum
Implements:
- JSONSerializable
Represents an enumeration
Static Method Summary
| Static Public Methods | ||
| public static |
Converts from Python JSON to enumeration |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(object: Object) Creates an enum from an object of Key/ Value pairs |
|
Method Summary
| Public Methods | ||
| public |
descriptionForValue(value: any) Attempts to create human-readable name from enum key. |
|
| public |
keyForValue(value: any) Obtains key name for value (camel case) |
|
Static Public Methods
Public Constructors
Public Methods
public descriptionForValue(value: any) source
Attempts to create human-readable name from enum key.
Params:
| Name | Type | Attribute | Description |
| value | any | The enum value |
public keyForValue(value: any) source
Obtains key name for value (camel case)
Params:
| Name | Type | Attribute | Description |
| value | any | The enum value |
