NodeSelectorTerm.fromJson constructor

NodeSelectorTerm.fromJson(
  1. Map<String, dynamic> json
)

Creates a NodeSelectorTerm from JSON data.

Implementation

NodeSelectorTerm.fromJson(Map<String, dynamic> json)
    : this(
        matchExpressions: json['matchExpressions'] != null
            ? NodeSelectorRequirement.listFromJson(
                (json['matchExpressions'] as Iterable)
                    .cast<Map<String, dynamic>>())
            : null,
        matchFields: json['matchFields'] != null
            ? NodeSelectorRequirement.listFromJson(
                (json['matchFields'] as Iterable)
                    .cast<Map<String, dynamic>>())
            : null,
      );