convertReportDocument function
reports as --report writes them.
Implementation
Map<String, Object?> convertReportDocument(Iterable<ConvertReport> reports) =>
<String, Object?>{
...convertReportFormat.envelope(),
'reports': <Object?>[for (final r in reports) r.toJson()],
};