diff --git a/QuickbaseNet/Models/FieldValue.cs b/QuickbaseNet/Models/FieldValue.cs index 9788243..8a2654b 100644 --- a/QuickbaseNet/Models/FieldValue.cs +++ b/QuickbaseNet/Models/FieldValue.cs @@ -1,10 +1,16 @@ using Newtonsoft.Json; +using System; namespace QuickbaseNet.Models { public class FieldValue { - [JsonProperty("value")] - public dynamic Value { get; set; } + [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)] + public object Value { get; set; } + + public T GetValue() + { + return Value == null ? default : (T)Convert.ChangeType(Value, typeof(T)); + } } } \ No newline at end of file