toJson method
Converts a ValidatingAdmissionPolicyStatus instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempConditions = conditions;
final tempObservedGeneration = observedGeneration;
final tempTypeChecking = typeChecking;
if (tempConditions != null) {
jsonData['conditions'] =
tempConditions.map((e) => e.toJson()).toList(growable: false);
}
if (tempObservedGeneration != null) {
jsonData['observedGeneration'] = tempObservedGeneration;
}
if (tempTypeChecking != null) {
jsonData['typeChecking'] = tempTypeChecking.toJson();
}
return jsonData;
}