toJson method
Implementation
@override
Object toJson() => {
if (setup case final setup?) 'setup': setup.toJson(),
if (clientContent case final clientContent?)
'clientContent': clientContent.toJson(),
if (realtimeInput case final realtimeInput?)
'realtimeInput': realtimeInput.toJson(),
if (toolResponse case final toolResponse?)
'toolResponse': toolResponse.toJson(),
};