toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'kind': kind.wireValue,
  'reason': reason,
  'profile': profile?.value,
  'packages': [for (final id in packages) id.value],
};