TopologySelectorLabelRequirement.fromJson constructor

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

Creates a TopologySelectorLabelRequirement from JSON data.

Implementation

TopologySelectorLabelRequirement.fromJson(Map<String, dynamic> json)
    : this(
        key: json['key'],
        values:
            json['values'] != null ? List<String>.from(json['values']) : [],
      );