Seller Model
models/sellers_response.dart · Seller, SellerTrade
Overview
Public seller card data — id, name, handle (username), photo, store_status, plus a list of SellerTrade (métier) entries. SellersResponse wraps a paginated list with count.
User Flow
- Seller.fromJson mirrors the /store/seller list item.
- SellerTrade is the métier sub-entity; parseSellerTrades extracts it from the seller raw map.
- fromJson tolerates missing photo / handle — empty strings default in.
Cases & Edge Cases
- store_status is a free-form string ('active', 'paused', 'pending') — UI maps to a color but defaults to grey for unknown values.
- handle is the only identifier used in URLs (/seller/:handle) — must be unique server-side; the client doesn't validate.
Code References
- lib/src/features/shared/search/models/sellers_response.dart
API Calls
Empty — fill this in later. Open the manifest and add content here.
Notes
SellerTrade is re-exported and consumed by the profile feature (currentSellerTradesProvider) — keep the schema stable.