decode

Returns a valid ChatCompletionRole for data, null otherwise.