toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (action != null) 'action': action!,
  if (content != null) 'content': content!,
  if (createTime != null) 'createTime': createTime!,
  if (error != null) 'error': error!,
  if (rawContent != null) 'rawContent': rawContent!,
  if (tool != null) 'tool': tool!,
};