toActionType method
Implementation
ActionType toActionType() {
switch (this) {
case 'PUBLISH':
return ActionType.publish;
case 'SUBSCRIBE':
return ActionType.subscribe;
case 'RECEIVE':
return ActionType.receive;
case 'CONNECT':
return ActionType.connect;
}
throw Exception('$this is not known in enum ActionType');
}