toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (category != null) 'category': category!,
if (errorMessage != null) 'errorMessage': errorMessage!,
if (severity != null) 'severity': severity!,
if (stackTrace != null) 'stackTrace': stackTrace!,
if (type != null) 'type': type!,
if (warning != null) 'warning': warning!,
};