toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'callId': callId,
  'toolName': toolName,
  'arguments': arguments,
  if (result != null) 'result': result!.toJson(),
  'startedAt': startedAt.toIso8601String(),
  'endedAt': endedAt.toIso8601String(),
  'isError': isError,
  if (errorMessage != null) 'errorMessage': errorMessage,
};