Map<String, dynamic> toJson() => { 'type': type, 'tool_use_id': toolUseId, 'content': content, 'is_error': isError, };