toJson method
Implementation
Map<String, dynamic> toJson() => {
'success': success,
'commandName': commandName,
if (allowedTools != null && allowedTools!.isNotEmpty)
'allowedTools': allowedTools,
if (model != null) 'model': model,
'status': status,
};