There are special use-cases that each language supports; this document pertains to Dart models.
When you generate the models with json annotation, generated files include json_annotation package (https://pub.dev/packages/json_annotation/) and their syntax
Check out this example for a live demonstration.