memory/types.go
func (t *PressureLevel) UnmarshalEasyJSON(in *jlexer.Lexer) {
	switch PressureLevel(in.String()) {
	case PressureLevelModerate:
		*t = PressureLevelModerate
	case PressureLevelCritical:
		*t = PressureLevelCritical

	default:
		in.AddError(errors.New("unknown PressureLevel value"))
	}
}
func (t *PressureLevel) UnmarshalEasyJSON(in *jlexer.Lexer) {
	switch PressureLevel(in.String()) {
	case PressureLevelModerate:
		*t = PressureLevelModerate
	case PressureLevelCritical:
		*t = PressureLevelCritical

	default:
		in.AddError(errors.New("unknown PressureLevel value"))
	}
}
// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.