public static T DeserializeToObject <T>(this RavenJObject input) { var itemText = input.ToJsonText(); var item = itemText.DeserializeFromString <T>(); return(item); }