We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d7670e4 + 9ff25ce commit 2b77c20Copy full SHA for 2b77c20
CsuChhs.WebComponents/Extensions/ResourceModelExtensions.cs
@@ -0,0 +1,18 @@
1
+using System.Text.Json;
2
+using CsuChhs.WebComponents.ResourceModels;
3
+
4
+namespace CsuChhs.WebComponents.Extensions;
5
6
+public static class ResourceModelExtensions
7
+{
8
+ public static string SerializeObject(this ResourceModelBase resourceModelBase)
9
+ {
10
+ var options = new JsonSerializerOptions
11
12
+ WriteIndented = true
13
+ };
14
15
+ return JsonSerializer.Serialize(resourceModelBase,
16
+ options);
17
+ }
18
+}
0 commit comments