ValidatingAdmissionPolicyStatus.fromJson constructor
Creates a ValidatingAdmissionPolicyStatus from JSON data.
Implementation
factory ValidatingAdmissionPolicyStatus.fromJson(Map<String, dynamic> json) {
final tempConditionsJson = json['conditions'];
final tempObservedGenerationJson = json['observedGeneration'];
final tempTypeCheckingJson = json['typeChecking'];
final List<Condition>? tempConditions = tempConditionsJson != null
? List<dynamic>.from(tempConditionsJson)
.map(
(e) => Condition.fromJson(
Map<String, dynamic>.from(e),
),
)
.toList()
: null;
final int? tempObservedGeneration = tempObservedGenerationJson;
final TypeChecking? tempTypeChecking = tempTypeCheckingJson != null
? TypeChecking.fromJson(tempTypeCheckingJson)
: null;
return ValidatingAdmissionPolicyStatus(
conditions: tempConditions,
observedGeneration: tempObservedGeneration,
typeChecking: tempTypeChecking,
);
}