toJson method
Implementation
@override
Object toJson() => {
'text': ?text,
'inlineData': ?inlineData?.toJson(),
'functionCall': ?functionCall?.toJson(),
'functionResponse': ?functionResponse?.toJson(),
'fileData': ?fileData?.toJson(),
'executableCode': ?executableCode?.toJson(),
'codeExecutionResult': ?codeExecutionResult?.toJson(),
'videoMetadata': ?videoMetadata?.toJson(),
if (thought.isNotDefault) 'thought': thought,
if (thoughtSignature.isNotDefault)
'thoughtSignature': encodeBytes(thoughtSignature),
'partMetadata': ?partMetadata?.toJson(),
};