toJson method
Ret convert to Json Map
Implementation
@override
Map<String, dynamic> toJson() {
Map<String, dynamic> result = {
"code": code,
"body": body,
"module": module
};
if (level != null) {
result.putIfAbsent("level", () => level);
}
return result;
}