// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////

enum TXVideoRecordSpeed {
  VIDEO_RECORD_SPEED_SLOWEST /* null */,
  VIDEO_RECORD_SPEED_SLOW /* null */,
  VIDEO_RECORD_SPEED_NOMAL /* null */,
  VIDEO_RECORD_SPEED_FAST /* null */,
  VIDEO_RECORD_SPEED_FASTEST /* null */
}

extension TXVideoRecordSpeedToX on TXVideoRecordSpeed {
  int toValue() {
    switch (this) {
      case TXVideoRecordSpeed.VIDEO_RECORD_SPEED_SLOWEST: return TXVideoRecordSpeed.VIDEO_RECORD_SPEED_SLOWEST.index + 0;
      case TXVideoRecordSpeed.VIDEO_RECORD_SPEED_SLOW: return TXVideoRecordSpeed.VIDEO_RECORD_SPEED_SLOW.index + 0;
      case TXVideoRecordSpeed.VIDEO_RECORD_SPEED_NOMAL: return TXVideoRecordSpeed.VIDEO_RECORD_SPEED_NOMAL.index + 0;
      case TXVideoRecordSpeed.VIDEO_RECORD_SPEED_FAST: return TXVideoRecordSpeed.VIDEO_RECORD_SPEED_FAST.index + 0;
      case TXVideoRecordSpeed.VIDEO_RECORD_SPEED_FASTEST: return TXVideoRecordSpeed.VIDEO_RECORD_SPEED_FASTEST.index + 0;
      default: return 0;
    }
  }
}

extension TXVideoRecordSpeedFromX on int {
  TXVideoRecordSpeed toTXVideoRecordSpeed() {
    switch (this) {
      
      default: return TXVideoRecordSpeed.values[this + 0];
    }
  }
}