toJson method
Converts a AggregationRule instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempClusterRoleSelectors = clusterRoleSelectors;
if (tempClusterRoleSelectors != null) {
jsonData['clusterRoleSelectors'] = tempClusterRoleSelectors
.map((e) => e.toJson())
.toList(growable: false);
}
return jsonData;
}