/// Enum to identify different module types for export functionality
enum ExportModuleType {
  asset(1, 'Asset'),
  callRequest(2, 'AllWorkOrder');

  final int id;
  final String displayName;

  const ExportModuleType(this.id, this.displayName);

  /// Get module type from id
  static ExportModuleType fromId(int id) {
    return ExportModuleType.values.firstWhere(
      (type) => type.id == id,
      orElse: () => ExportModuleType.asset,
    );
  }
}
