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