toJson method
Implementation
Map<String, dynamic> toJson() => {
"role": role,
"content": content,
"status": status,
"createdAt": createdAt?.toIso8601String(),
"updatedAt": updatedAt?.toIso8601String(),
"id": id,
"ticketId": ticketId
};