toDeliveryStreamStatus method

DeliveryStreamStatus toDeliveryStreamStatus()

Implementation

DeliveryStreamStatus toDeliveryStreamStatus() {
  switch (this) {
    case 'CREATING':
      return DeliveryStreamStatus.creating;
    case 'CREATING_FAILED':
      return DeliveryStreamStatus.creatingFailed;
    case 'DELETING':
      return DeliveryStreamStatus.deleting;
    case 'DELETING_FAILED':
      return DeliveryStreamStatus.deletingFailed;
    case 'ACTIVE':
      return DeliveryStreamStatus.active;
  }
  throw Exception('$this is not known in enum DeliveryStreamStatus');
}