toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ActionType.publish:
      return 'PUBLISH';
    case ActionType.subscribe:
      return 'SUBSCRIBE';
    case ActionType.receive:
      return 'RECEIVE';
    case ActionType.connect:
      return 'CONNECT';
  }
}