toAnthropicJson method

Map<String, dynamic> toAnthropicJson()

Convert to Anthropic format

Implementation

Map<String, dynamic> toAnthropicJson() {
  return {
    'data': data.map((file) => file.toAnthropicJson()).toList(),
    if (firstId != null) 'first_id': firstId,
    if (lastId != null) 'last_id': lastId,
    if (hasMore != null) 'has_more': hasMore,
  };
}