toJson method

Map<String, dynamic> toJson()

Converts to JSON.

Implementation

Map<String, dynamic> toJson() => {
  'id': id,
  'object': object,
  'created_at': createdAt,
  if (toolResources != null) 'tool_resources': toolResources!.toJson(),
  'metadata': metadata,
};