toProtocol method
Implementation
Protocol toProtocol() {
switch (this) {
case 'http':
return Protocol.http;
case 'https':
return Protocol.https;
}
throw Exception('$this is not known in enum Protocol');
}
Protocol toProtocol() {
switch (this) {
case 'http':
return Protocol.http;
case 'https':
return Protocol.https;
}
throw Exception('$this is not known in enum Protocol');
}