Function hashTypeFromJSON