Map toMap()

Converts the channel into a map.

Source

Map toMap() {
  Map tmp = new Map.from(_fields);
  tmp['variables'] = {};
  tmp['variables'].addAll(_variables);
  return tmp;
}