entity top-level constant

List<String> const entity

Implementation

const entity = [
  'part of \'entities.dart\';',
  '@JsonSerializable()',
  'class {name} {',
  'const {name}();',
  "factory {name}.fromJson(Map<String, dynamic> json) => _\${name}FromJson(json);",
  "Map<String, dynamic> toJson() => _\${name}ToJson(this);",
  '}',
];