AnthropicFileListResponse.fromJson constructor
Implementation
factory AnthropicFileListResponse.fromJson(Map<String, dynamic> json) {
return AnthropicFileListResponse(
data: (json['data'] as List)
.map((item) => AnthropicFile.fromJson(item as Map<String, dynamic>))
.toList(),
firstId: json['first_id'] as String?,
lastId: json['last_id'] as String?,
hasMore: json['has_more'] as bool? ?? false,
);
}