toJson method
Implementation
@override
Object toJson() => {
'toolsText': ?toolsText,
'tools': ?tools?.toJson(),
if (agentId.isNotDefault) 'agentId': agentId,
if (agentType.isNotDefault) 'agentType': agentType,
if (description.isNotDefault) 'description': description,
if (subAgents.isNotDefault) 'subAgents': subAgents,
'developerInstruction': ?developerInstruction?.toJson(),
};