libs/mvc/wt_model
library
Classes
-
WtModel<T>
-
Base Model — a thin, typed HTTP client (the Flutter equivalent of a PHP
model). v1.1 makes it production-ready:
• injects
Authorization: Bearer <token> from the session automatically,
• unwraps an optional response envelope (WtConfig.envelopeKey),
• surfaces the server error message (WtConfig.messageKey),
• exposes low-level getJson/postJson/putJson/deleteJson/
postMultipart so action-style endpoints and file uploads are easy.
-
WtUpload
-
One file to attach to a multipart request.