toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (action != null) 'action': action!,
if (error != null) 'error': error!,
if (outputParameters != null) 'outputParameters': outputParameters!,
if (tool != null) 'tool': tool!,
};