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