portal_core_models library

Shared DTOs used across Portal apps and the API client.

Classes

ItemUnit
PortalSyncPullContract
Standard batch pull response includes an ISO-8601 cursor watermark.
PortalSyncPushContract
Standard batch push response shape for task, habit, and board sync.
ShoppingItem
ShoppingList

Enums

ShoppingStatus
ShoppingUnitFamily
High-level unit grouping for shopping item editors.
UnitType
How a shopping (or wardrobe) item is measured.

Extensions

UnitTypeShoppingX on UnitType

Functions

parseShoppingApiList<T>({required dynamic response, required String endpoint, required T decode(Map<String, dynamic> json)}) → List<T>
Decodes a JSON array from shopping endpoints with per-row error context.

Exceptions / Errors

ShoppingParseException
Thrown when a shopping API response cannot be decoded for the UI.