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