toValue method

String toValue()

Converts the enum value to its string representation.

Implementation

String toValue() {
  switch (this) {
    case SCSignalingChannel.socket:
      return 'socket';
    case SCSignalingChannel.fcm:
      return 'fcm';
  }
}