示例#1
0
        public string SerializePrettyPrint(ActivityShort value)
        {
            var options = new JsonSerializerOptions
            {
                WriteIndented = true
            };

            return(JsonSerializer.Serialize <ActivityShort>(value, options));
        }
示例#2
0
 public string Serialize(ActivityShort value)
 {
     return(JsonSerializer.Serialize <ActivityShort>(value));
 }