toMap method

Map toMap()

Convertion Model CoreAction to Map

Implementation

Map toMap() {
  Map map = Map();
  if (topics != null) map[_TOPICS] = topics;
  if (type != null) map[_TYPE] = type.toString();
  if (app != null) map[TYPE_APP] = app;
  if (url != null) map[TYPE_URL] = url;
  if (call != null) map[TYPE_CALL] = call;
  if (market != null) map[TYPE_MARKET] = market;
  if (share != null) map[TYPE_SHARE] = share;
  if (noAction != null) map[TYPE_NO_ACTION] = noAction;
  if (wallet != null) map[TYPE_WALLET] = wallet;
  if (webview != null) map[TYPE_WEBVIEW] = webview;
  return map;
}