|
@@ -5,6 +5,7 @@ class Ticket(object):
|
|
|
self,
|
|
|
id,
|
|
|
status,
|
|
|
+ ticket_list,
|
|
|
ticket_type,
|
|
|
title,
|
|
|
created_at,
|
|
@@ -17,6 +18,7 @@ class Ticket(object):
|
|
|
):
|
|
|
self.id = id
|
|
|
self.status = status
|
|
|
+ self.ticket_list = ticket_list
|
|
|
self.ticket_type = ticket_type
|
|
|
self.title = title
|
|
|
self.created_at = created_at
|
|
@@ -31,6 +33,7 @@ class Ticket(object):
|
|
|
return "{0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}".format(
|
|
|
self.id,
|
|
|
self.status,
|
|
|
+ self.ticket_list,
|
|
|
self.ticket_type,
|
|
|
self.title,
|
|
|
self.created_at,
|
|
@@ -41,11 +44,12 @@ class Ticket(object):
|
|
|
self.assigned_to
|
|
|
)
|
|
|
|
|
|
- # Method to convert the object to a dictionary, if needed for JSON responses or serialization
|
|
|
def to_dict(self):
|
|
|
+ """ Method to convert the object to a dictionary, if needed for JSON responses or serialization """
|
|
|
return {
|
|
|
"id": self.id,
|
|
|
"status": self.status,
|
|
|
+ "ticket_list": self.ticket_list,
|
|
|
"ticket_type": self.ticket_type,
|
|
|
"title": self.title,
|
|
|
"created_at": self.created_at,
|