toJson method

Map<String, Object?> toJson()

The check as one entry of --json's checks: name, status, detail, and fix only when there is one.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'name': name,
  'status': status.name,
  'detail': detail,
  'fix': ?fix,
};