What problem does it solve?
Manually writing Dart model classes for API JSON responses is repetitive and error-prone, especially when keeping .g.dart serialization helpers and the JsonConvert registry in sync. This Skill automates the entire workflow using the fjson CLI, replacing the FlutterJsonBeanFactory IntelliJ plugin for CLI and agent-based workflows.
Core Features & Use Cases
- Entity Generation from JSON: Run
fjson bean with a class name and JSON string or file to produce a complete @JsonSerializable Dart entity with nested sub-classes, @JSONField annotations, and default field values.
- Helper Regeneration: Run
fjson gen to rebuild all .g.dart files, json_field.dart, and json_convert_content.dart after editing any entity, including cleanup of stale generated files.
- Use Case: When adding a new AniList API response model to the unyo Flutter project, paste the JSON response, run one command targeting the correct DTO provider folder, and get a ready-to-use entity with all serialization helpers regenerated automatically.
Quick Start
Ask the AI to generate a Dart entity class from your JSON response using the fjson bean command with the class name, JSON payload, output DTO folder, and the --set-default flag.