models/model_helpers library

origin: simlpu_mob/lib/models/_fn.dart author: anovsiradj, opencode-go/glm-5.2 version: 2022-05-31, revised: 2026-08-17

Helpers for json_serializable models. note: source also had fileToJson/fileFromJson as passthrough no-ops — dropped (inventory §B).

Functions

strNum(dynamic data) → num?
num.tryParse for dynamic input; returns the value itself if already num.