Constructors
constructor
- new KeyValue(key: string, value?: string, prefix?: string): KeyValue
Parameters
- key: string
Optionalvalue: stringOptionalprefix: string
Properties
Optionalvalue
value?: string
Methods
toString
- toString(): string
Returns string
Represents a key-value pair with a unique identifier.
Remarks
This class is used to create structured key-value objects with an automatically generated unique ID. The value is optional and can be left undefined.
Example