toHttpScheme method

HttpScheme toHttpScheme()

Implementation

HttpScheme toHttpScheme() {
  switch (this) {
    case 'http':
      return HttpScheme.http;
    case 'https':
      return HttpScheme.https;
  }
  throw Exception('$this is not known in enum HttpScheme');
}