toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case PingStatus.online:
      return 'Online';
    case PingStatus.connectionLost:
      return 'ConnectionLost';
    case PingStatus.inactive:
      return 'Inactive';
  }
}