toJson method

Map<String, Object?> toJson()

Machine-readable shape (JSON envelope / receipts).

Implementation

Map<String, Object?> toJson() => {
  'kind': kind.label,
  'rowId': rowId,
  'requirement': requirement,
  'message': message,
  if (route != null) 'route': route,
};