public void CustomDateTimeSerialization()
        {
            // serialization
            var thing = new CustomThing
            {
                From  = new DateTime(2020, 04, 24, 1, 2, 3),
                To    = null,
                Now   = new DateTime?(new DateTime(2019, 12, 24, 1, 2, 3)),
                Then  = new DateTime?(),
                Start = new DateTime(2020, 05, 19, 2, 48, 55),
            };

            var ss   = new ServiceStackSerializer();
            var json = ss.Serialize(thing);

            Assert.NotNull(json);
            WriteLine(JsonFormatter.FormatJson(json));

            var obj = ss.Deserialize <CustomThing>(new RestResponse()
            {
                Content = json
            });

            Assert.NotNull(obj);
        }
        private string Serialize <T>(T dto)
        {
            var ss = new ServiceStackSerializer();

            return(ss.Serialize(dto));
        }