convertReportDocument function

Map<String, Object?> convertReportDocument(
  1. Iterable<ConvertReport> reports
)

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()],
    };