toJson method
Implementation
@override
Object toJson() => {
if (setupComplete != null) 'setupComplete': setupComplete!.toJson(),
if (serverContent != null) 'serverContent': serverContent!.toJson(),
if (toolCall != null) 'toolCall': toolCall!.toJson(),
if (toolCallCancellation != null)
'toolCallCancellation': toolCallCancellation!.toJson(),
if (goAway != null) 'goAway': goAway!.toJson(),
if (sessionResumptionUpdate != null)
'sessionResumptionUpdate': sessionResumptionUpdate!.toJson(),
if (usageMetadata != null) 'usageMetadata': usageMetadata!.toJson(),
};