toMap method
Implementation
Map toMap() {
Map map = Map();
if (errorCode != null) map[MAP_ERROR_CODE] = errorCode;
if (errorMessage != null) map[MAP_ERROR_MESSAGE] = errorMessage;
return map;
}
Map toMap() {
Map map = Map();
if (errorCode != null) map[MAP_ERROR_CODE] = errorCode;
if (errorMessage != null) map[MAP_ERROR_MESSAGE] = errorMessage;
return map;
}