code-generation

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Code Generation Guidelines

代码生成指南

  • Generate code for:
    • Mappable classes
    • JSON serialization
    • Other generated code
  • Use this command for code generation:
    dart run build_runner build --delete-conflicting-outputs
  • Run code generation after:
    • Adding new Mappable classes
    • Modifying existing Mappable classes
  • 需要生成代码的场景:
    • 可映射类
    • JSON序列化
    • 其他需要生成的代码
  • 请使用以下命令执行代码生成:
    dart run build_runner build --delete-conflicting-outputs
  • 请在完成以下操作后运行代码生成:
    • 新增可映射类后
    • 修改现有可映射类后