to the case javascript cannot handle Enum type