| trigger |
|---|
always_on |
These rules define how API integration should be generated, structured, and maintained across the project.
The agent must always follow these standards when creating API-related files or methods.
| // product_res_dm.dart | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:json_annotation/json_annotation.dart'; | |
| part 'product_res_dm.g.dart'; | |
| /// Response model for GET /api/v1/products/{id} | |
| @JsonSerializable() | |
| @immutable |
| // product_res_dm.dart | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:json_annotation/json_annotation.dart'; | |
| part 'product_res_dm.g.dart'; | |
| @JsonSerializable() | |
| @immutable | |
| class ProductResDm { |