fromName static method

HttpTransportType fromName(
  1. String? name
)

Implementation

static HttpTransportType fromName(String? name) {
  switch (name) {
    case 'none':
      {
        return HttpTransportType.none;
      }
    case 'WebSockets':
      {
        return HttpTransportType.webSockets;
      }
    case 'ServerSentEvents':
      {
        return HttpTransportType.serverSentEvents;
      }
    case 'LongPolling':
      {
        return HttpTransportType.longPolling;
      }
    default:
      return HttpTransportType.none;
  }
}