File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -845,4 +845,4 @@ public async Task<SessionCompactionCompactResult> CompactAsync(CancellationToken
845845[ JsonSerializable ( typeof ( Tool ) ) ]
846846[ JsonSerializable ( typeof ( ToolsListRequest ) ) ]
847847[ JsonSerializable ( typeof ( ToolsListResult ) ) ]
848- internal partial class RpcJsonContext : JsonSerializerContext ;
848+ internal partial class RpcJsonContext : JsonSerializerContext ;
Original file line number Diff line number Diff line change @@ -86,15 +86,11 @@ public abstract partial class SessionEvent
8686 [ JsonIgnore ]
8787 public abstract string Type { get ; }
8888
89- public static SessionEvent FromJson ( string json )
90- {
91- return JsonSerializer . Deserialize ( json , SessionEventsJsonContext . Default . SessionEvent ) ! ;
92- }
93-
94- public string ToJson ( )
95- {
96- return JsonSerializer . Serialize ( this , SessionEventsJsonContext . Default . SessionEvent ) ;
97- }
89+ public static SessionEvent FromJson ( string json ) =>
90+ JsonSerializer . Deserialize ( json , SessionEventsJsonContext . Default . SessionEvent ) ! ;
91+
92+ public string ToJson ( ) =>
93+ JsonSerializer . Serialize ( this , SessionEventsJsonContext . Default . SessionEvent ) ;
9894}
9995
10096/// <summary>
You can’t perform that action at this time.
0 commit comments