decode

Returns a valid DocumentSourceFormatsEnum for data, null otherwise.