toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  Map<String, dynamic> map = {};
  _addToMapIfNotNull("title", title, map);
  _addToMapIfNotNull("message", message, map);
  _addToMapIfNotNull("showStopAction", showStopAction, map);
  _addToMapIfNotNull("stopActionText", stopActionText, map);
  _addToMapIfNotNull("tapAction", tapAction?.name, map);
  return map;
}