// 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 TXGenerateResultCode {
  GENERATE_RESULT_OK /* 0 */,
  GENERATE_RESULT_FAILED /* -1 */,
  GENERATE_RESULT_CANCEL /* -2 */,
  GENERATE_RESULT_LICENCE_VERIFICATION_FAILED /* -5 */
}

extension TXGenerateResultCodeToX on TXGenerateResultCode {
  int toValue() {
    switch (this) {
      case TXGenerateResultCode.GENERATE_RESULT_OK: return 0;
      case TXGenerateResultCode.GENERATE_RESULT_FAILED: return -1;
      case TXGenerateResultCode.GENERATE_RESULT_CANCEL: return -2;
      case TXGenerateResultCode.GENERATE_RESULT_LICENCE_VERIFICATION_FAILED: return -5;
      default: return 0;
    }
  }
}

extension TXGenerateResultCodeFromX on int {
  TXGenerateResultCode toTXGenerateResultCode() {
    switch (this) {
      case 0: return TXGenerateResultCode.GENERATE_RESULT_OK;
      case -1: return TXGenerateResultCode.GENERATE_RESULT_FAILED;
      case -2: return TXGenerateResultCode.GENERATE_RESULT_CANCEL;
      case -5: return TXGenerateResultCode.GENERATE_RESULT_LICENCE_VERIFICATION_FAILED;
      default: return TXGenerateResultCode.values[this + 0];
    }
  }
}