public string ToNullable(JsonNullable jsonValue)
 {
     return(jsonValue.IsNil ? "null" : this.jsonService.GetNullable(jsonValue.Value));
 }
Example #2
0
        protected object ToValue(Type propertyType, JsonNullable jsonValue)
        {
            var type = this.assemblyInfoService.GetNullableUnderlyingType(propertyType);

            return(this.assemblyInfoService.ConvertValueToPropertyType(jsonValue.Value, type));
        }