code constant

LintCode const code

Implementation

static const LintCode code = LintCode(
  'require_json_serializable_to_json',
  '@JsonSerializable classes must declare `toJson()`',
  severity: DiagnosticSeverity.WARNING,
);