toMap method
Conversion to Map
Implementation
Map toMap() {
Map map = Map();
if (code != null) map[_JSON_CODE] = code;
if (name != null) map[_JSON_NAME] = name;
map[_JSON_VISIBLE] = visible;
map[_JSON_SUBSCRIBED] = subscribed;
return map;
}