toJson method
The evidence projection of this profile.
Implementation
Map<String, Object?> toJson() => {
'id': id,
'operations': [for (final operation in operations) operation.toJson()],
if (externalPackageRoots.isNotEmpty)
'externalPackageRoots': Map<String, String>.unmodifiable(
externalPackageRoots,
),
};