toMap method

Map toMap()

Conversion to Map

Implementation

Map toMap() {
  Map map = Map();
  if (timesShowed != null) map[_TIMES_SHOWED] = timesShowed;
  if (timesClicked != null) map[_TIMES_CLICKED] = timesClicked;
  if (wasDismissed != null) map[_WAS_DISMISSED] = wasDismissed;
  return map;
}