Convert Dictionary<string,object> to Amazon.AttributeValue

Update 1:

So I’m looking at the differences between the AttributeValue, and what comes back from the DynamoDb Get.

When I run this code:

    var att1 = new AttributeValue {S = "Pending"};
    var dic1 = att1.ToObjectDictionary();
    var att2 = dic1.FromObjectDictionary<AttributeValue>();

I can deserialize no problem, and the Dictionary looks like:

But the dictionary coming back from DynamoDb looks like:

Which throws the error trying to execute:

var attr = state.FromObjectDictionary<AttributeValue>();

Any ideas?