// 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 MAOfflineMapDownloadStatus {
  MAOfflineMapDownloadStatusWaiting /* 0 */,
  MAOfflineMapDownloadStatusStart /* null */,
  MAOfflineMapDownloadStatusProgress /* null */,
  MAOfflineMapDownloadStatusCompleted /* null */,
  MAOfflineMapDownloadStatusCancelled /* null */,
  MAOfflineMapDownloadStatusUnzip /* null */,
  MAOfflineMapDownloadStatusFinished /* null */,
  MAOfflineMapDownloadStatusError /* null */
}

extension MAOfflineMapDownloadStatusToX on MAOfflineMapDownloadStatus {
  int toValue() {
    switch (this) {
      case MAOfflineMapDownloadStatus.MAOfflineMapDownloadStatusWaiting: return 0;
      case MAOfflineMapDownloadStatus.MAOfflineMapDownloadStatusStart: return MAOfflineMapDownloadStatus.MAOfflineMapDownloadStatusStart.index + 0;
      case MAOfflineMapDownloadStatus.MAOfflineMapDownloadStatusProgress: return MAOfflineMapDownloadStatus.MAOfflineMapDownloadStatusProgress.index + 0;
      case MAOfflineMapDownloadStatus.MAOfflineMapDownloadStatusCompleted: return MAOfflineMapDownloadStatus.MAOfflineMapDownloadStatusCompleted.index + 0;
      case MAOfflineMapDownloadStatus.MAOfflineMapDownloadStatusCancelled: return MAOfflineMapDownloadStatus.MAOfflineMapDownloadStatusCancelled.index + 0;
      case MAOfflineMapDownloadStatus.MAOfflineMapDownloadStatusUnzip: return MAOfflineMapDownloadStatus.MAOfflineMapDownloadStatusUnzip.index + 0;
      case MAOfflineMapDownloadStatus.MAOfflineMapDownloadStatusFinished: return MAOfflineMapDownloadStatus.MAOfflineMapDownloadStatusFinished.index + 0;
      case MAOfflineMapDownloadStatus.MAOfflineMapDownloadStatusError: return MAOfflineMapDownloadStatus.MAOfflineMapDownloadStatusError.index + 0;
      default: return 0;
    }
  }
}

extension MAOfflineMapDownloadStatusFromX on int {
  MAOfflineMapDownloadStatus toMAOfflineMapDownloadStatus() {
    switch (this) {
      case 0: return MAOfflineMapDownloadStatus.MAOfflineMapDownloadStatusWaiting;
      default: return MAOfflineMapDownloadStatus.values[this + 0];
    }
  }
}