toJson method
Implementation
Map<String, dynamic> toJson() {
final severity = this.severity;
final status = this.status;
final details = this.details;
final id = this.id;
final title = this.title;
return {
'Severity': severity.toValue(),
'Status': status.toValue(),
if (details != null) 'Details': details,
if (id != null) 'Id': id,
if (title != null) 'Title': title,
};
}