Generic type struct StateValue[T any] for saving states values.
StateValue[T any]
A unique state key
Key: string
Value: T