pub fn variant(name: &str, payload: Json) -> Json
The enum value of the constructor name with payload.
name
payload