toMonitoringExecutionSortKey method

MonitoringExecutionSortKey toMonitoringExecutionSortKey()

Implementation

MonitoringExecutionSortKey toMonitoringExecutionSortKey() {
  switch (this) {
    case 'CreationTime':
      return MonitoringExecutionSortKey.creationTime;
    case 'ScheduledTime':
      return MonitoringExecutionSortKey.scheduledTime;
    case 'Status':
      return MonitoringExecutionSortKey.status;
  }
  throw Exception('$this is not known in enum MonitoringExecutionSortKey');
}