toPreferredChannelPipeline method
Implementation
PreferredChannelPipeline toPreferredChannelPipeline() {
switch (this) {
case 'CURRENTLY_ACTIVE':
return PreferredChannelPipeline.currentlyActive;
case 'PIPELINE_0':
return PreferredChannelPipeline.pipeline_0;
case 'PIPELINE_1':
return PreferredChannelPipeline.pipeline_1;
}
throw Exception('$this is not known in enum PreferredChannelPipeline');
}