PortalApplicationCategoryDto typedef

PortalApplicationCategoryDto = ({List<PortalApplicationDto> applications, String distinguishedName, String? nameEn, String nameZh})

Represents one top-level NTUT Portal application category.

Nested portal folders are flattened into their top-level category so UI consumers receive only categories and browser-openable applications.

Implementation

typedef PortalApplicationCategoryDto = ({
  /// LDAP distinguished name used to fetch the category from the portal.
  String distinguishedName,

  /// Chinese display name supplied by the portal.
  String nameZh,

  /// English display name supplied by the portal, when present.
  String? nameEn,

  /// Applications in portal display order.
  List<PortalApplicationDto> applications,
});