toJson method
Converts a PodFailurePolicyOnExitCodesRequirement instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempContainerName = containerName;
final tempOperator = operator;
final tempValues = values;
if (tempContainerName != null) {
jsonData['containerName'] = tempContainerName;
}
jsonData['operator'] = tempOperator;
jsonData['values'] = tempValues;
return jsonData;
}