You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
634 B
Dart
27 lines
634 B
Dart
class Issue{
|
|
String title;
|
|
String userId;
|
|
List<int> reports;
|
|
String serviceRequestId;
|
|
String description;
|
|
bool isSelected;
|
|
|
|
Issue({
|
|
this.description,
|
|
this.isSelected,
|
|
this.title,
|
|
this.userId,
|
|
this.reports,
|
|
this.serviceRequestId,
|
|
});
|
|
|
|
Map<String,String> toMap(){
|
|
Map<String,String> map ={};
|
|
if(title != null) map["title"] = title;
|
|
if(reports != null) map["issue_report"] = reports.toString();
|
|
if(userId != null) map["uid"] = userId;
|
|
if(description != null) map["desc"] = description;
|
|
if(serviceRequestId != null) map["call_id"] = serviceRequestId;
|
|
return map;
|
|
}
|
|
} |