toJson method
Implementation
@override
Object toJson() => {
if (searchEntryPoint != null)
'searchEntryPoint': searchEntryPoint!.toJson(),
if (groundingChunks.isNotDefault)
'groundingChunks': encodeList(groundingChunks),
if (groundingSupports.isNotDefault)
'groundingSupports': encodeList(groundingSupports),
if (retrievalMetadata != null)
'retrievalMetadata': retrievalMetadata!.toJson(),
if (webSearchQueries.isNotDefault) 'webSearchQueries': webSearchQueries,
};