toJson method
Implementation
Map toJson() {
Map _result = {};
if (errorCode != null) _result.addAll({"errorCode": errorCode});
if (underlyingException != null)
_result.addAll({"underlyingException": underlyingException!.toJson()});
if (message != null) _result.addAll({"message": message});
return _result;
}