toJson method

  1. @override
Map<String, dynamic> toJson()
override

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;
}