Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Aug 13, 2024
1 parent 6d7c1a0 commit 2d7bf48
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public partial class Root
{
return this.Serialize(null);
}
public string Serialize(JsonSerializerOptions options = null)
public string Serialize(JsonSerializerOptions options = null)
{
return JsonSerializer.Serialize(this, options);
}
public static Root Deserialize(string json)
Expand Down
3 changes: 2 additions & 1 deletion src/generators/csharp/presets/JsonSerializerPreset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ export const CSHARP_JSON_SERIALIZER_PRESET: CSharpPreset<CSharpOptions> = {
{
return this.Serialize(null);
}
public string Serialize(JsonSerializerOptions options = null)
public string Serialize(JsonSerializerOptions options = null)
{
return JsonSerializer.Serialize(this, options);
}
public static ${model.type} Deserialize(string json)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public partial class Test
{
return this.Serialize(null);
}
public string Serialize(JsonSerializerOptions options = null)
public string Serialize(JsonSerializerOptions options = null)
{
return JsonSerializer.Serialize(this, options);
}
public static Test Deserialize(string json)
Expand Down Expand Up @@ -244,7 +245,8 @@ public partial class NestedTest
{
return this.Serialize(null);
}
public string Serialize(JsonSerializerOptions options = null)
public string Serialize(JsonSerializerOptions options = null)
{
return JsonSerializer.Serialize(this, options);
}
public static NestedTest Deserialize(string json)
Expand Down

0 comments on commit 2d7bf48

Please sign in to comment.