toAPIName method
Implementation
APIName toAPIName() {
switch (this) {
case 'PUT_MEDIA':
return APIName.putMedia;
case 'GET_MEDIA':
return APIName.getMedia;
case 'LIST_FRAGMENTS':
return APIName.listFragments;
case 'GET_MEDIA_FOR_FRAGMENT_LIST':
return APIName.getMediaForFragmentList;
case 'GET_HLS_STREAMING_SESSION_URL':
return APIName.getHlsStreamingSessionUrl;
case 'GET_DASH_STREAMING_SESSION_URL':
return APIName.getDashStreamingSessionUrl;
case 'GET_CLIP':
return APIName.getClip;
}
throw Exception('$this is not known in enum APIName');
}