PushButton constructor
PushButton(
- Map map
Constructor of PushButton
Implementation
PushButton(Map map) {
map.forEach((key, value) {
switch (key) {
case _LABEL:
label = value.toString();
break;
case _ACTION:
action = PushAction(json.decode(value.toString()));
break;
case _TOPICS:
topics = json.decode(value.toString());
break;
}
});
}