TopologySelectorTerm.fromJson constructor
Creates a TopologySelectorTerm from JSON data.
Implementation
factory TopologySelectorTerm.fromJson(Map<String, dynamic> json) {
final tempMatchLabelExpressionsJson = json['matchLabelExpressions'];
final List<TopologySelectorLabelRequirement>? tempMatchLabelExpressions =
tempMatchLabelExpressionsJson != null
? List<dynamic>.from(tempMatchLabelExpressionsJson)
.map(
(e) => TopologySelectorLabelRequirement.fromJson(
Map<String, dynamic>.from(e),
),
)
.toList()
: null;
return TopologySelectorTerm(
matchLabelExpressions: tempMatchLabelExpressions,
);
}