toJson method

Map<String, Object?> toJson()

As tsm integrations status --json prints it.

Implementation

Map<String, Object?> toJson() => {
  'integration': integration.name,
  'installed': installed,
  'current': current,
  'file': file,
  if (problems.isNotEmpty) 'problems': problems,
  'hosts': ?hosts,
};