cachestorage/types.go
func (t *CachedResponseType) UnmarshalEasyJSON(in *jlexer.Lexer) {
	switch CachedResponseType(in.String()) {
	case CachedResponseTypeBasic:
		*t = CachedResponseTypeBasic
	case CachedResponseTypeCors:
		*t = CachedResponseTypeCors
	case CachedResponseTypeDefault:
		*t = CachedResponseTypeDefault
	case CachedResponseTypeError:
		*t = CachedResponseTypeError
	case CachedResponseTypeOpaqueResponse:
		*t = CachedResponseTypeOpaqueResponse
	case CachedResponseTypeOpaqueRedirect:
		*t = CachedResponseTypeOpaqueRedirect

	default:
		in.AddError(errors.New("unknown CachedResponseType value"))
	}
}
func (t *CachedResponseType) UnmarshalEasyJSON(in *jlexer.Lexer) {
	switch CachedResponseType(in.String()) {
	case CachedResponseTypeBasic:
		*t = CachedResponseTypeBasic
	case CachedResponseTypeCors:
		*t = CachedResponseTypeCors
	case CachedResponseTypeDefault:
		*t = CachedResponseTypeDefault
	case CachedResponseTypeError:
		*t = CachedResponseTypeError
	case CachedResponseTypeOpaqueResponse:
		*t = CachedResponseTypeOpaqueResponse
	case CachedResponseTypeOpaqueRedirect:
		*t = CachedResponseTypeOpaqueRedirect

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