Affinity.fromJson constructor
Creates a Affinity from JSON data.
Implementation
Affinity.fromJson(Map<String, dynamic> json)
: this(
nodeAffinity: json['nodeAffinity'] != null
? NodeAffinity.fromJson(json['nodeAffinity'])
: null,
podAffinity: json['podAffinity'] != null
? PodAffinity.fromJson(json['podAffinity'])
: null,
podAntiAffinity: json['podAntiAffinity'] != null
? PodAntiAffinity.fromJson(json['podAntiAffinity'])
: null,
);