public static Document FromJson(string jsonText)
{
var json = JsonMapper.ToObject(jsonText);
if (!json.IsObject)
throw new InvalidOperationException("Expected object at JSON root.");
var document = ToEntry(json, DynamoDBEntryConversion.V2) as Document;
if (document == null)
throw new InvalidOperationException();
return document;
}