toMap method

Map toMap()

Implementation

Map toMap() {
  Map map = Map();
  if (errorCode != null) map[MAP_ERROR_CODE] = errorCode;

  if (errorMessage != null) map[MAP_ERROR_MESSAGE] = errorMessage;
  return map;
}