encode method
Implementation
Map<String, Object?> encode() => {
if (description != null) 'description': description!.toTfJson(),
'recommendation': recommendation.toTfJson(),
'severity': severity.toTfJson(),
if (customOutput != null) 'custom_output': customOutput!.encode(),
'predicate': predicate.encode(),
'resource_selector': resourceSelector.encode(),
};