toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.action != null) {
json[r'action'] = this.action;
} else {
json[r'action'] = null;
}
if (this.category != null) {
json[r'category'] = this.category;
} else {
json[r'category'] = null;
}
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
json[r'tags'] = this.tags;
if (this.workload != null) {
json[r'workload'] = this.workload;
} else {
json[r'workload'] = null;
}
return json;
}