You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: direction.go
    path of file: ./repos/scan4all/vendor/github.com/pion/sdp/v3
    
    the code of the file until where you have to start completion: package sdp

import "errors"

// Direction is a marker for transmission directon of an endpoint
type Direction int

const (
	// DirectionSendRecv is for 
    
func NewDirection(raw string) (Direction, error) {
	switch raw {
	case directionSendRecvStr:
		return DirectionSendRecv, nil
	case directionSendOnlyStr:
		return DirectionSendOnly, nil
	case directionRecvOnlyStr:
		return DirectionRecvOnly, nil
	case directionInactiveStr:
		return DirectionInactive, nil
	default:
		return Direction(unknown), errDirectionString
	}
}