// 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 MATrafficStatus {
  MATrafficStatusSmooth /* 1 */,
  MATrafficStatusSlow /* null */,
  MATrafficStatusJam /* null */,
  MATrafficStatusSeriousJam /* null */
}

extension MATrafficStatusToX on MATrafficStatus {
  int toValue() {
    switch (this) {
      case MATrafficStatus.MATrafficStatusSmooth: return 1;
      case MATrafficStatus.MATrafficStatusSlow: return MATrafficStatus.MATrafficStatusSlow.index + 1;
      case MATrafficStatus.MATrafficStatusJam: return MATrafficStatus.MATrafficStatusJam.index + 1;
      case MATrafficStatus.MATrafficStatusSeriousJam: return MATrafficStatus.MATrafficStatusSeriousJam.index + 1;
      default: return 0;
    }
  }
}

extension MATrafficStatusFromX on int {
  MATrafficStatus toMATrafficStatus() {
    switch (this) {
      case 1: return MATrafficStatus.MATrafficStatusSmooth;
      default: return MATrafficStatus.values[this + 1];
    }
  }
}