I have object with keys type and playground. So I want payload type to be based on type type
type
playground
payload
enum Type {