toDocument method
Implementation
@override
Map<String, Object?> toDocument() {
Map<String, Object?> theDocument = HashMap();
theDocument["timestamp"] = timestamp;
if (appId != null) {
theDocument["appId"] = appId;
} else {
theDocument["appId"] = null;
}
if (description != null) {
theDocument["description"] = description;
} else {
theDocument["description"] = null;
}
if (read != null) {
theDocument["read"] = read;
} else {
theDocument["read"] = null;
}
if (reporterId != null) {
theDocument["reporterId"] = reporterId;
} else {
theDocument["reporterId"] = null;
}
if (assigneeId != null) {
theDocument["assigneeId"] = assigneeId;
} else {
theDocument["assigneeId"] = null;
}
if (status != null) {
theDocument["status"] = status;
} else {
theDocument["status"] = null;
}
return theDocument;
}