VolumeNodeAffinity.fromJson constructor
Creates a VolumeNodeAffinity from JSON data.
Implementation
factory VolumeNodeAffinity.fromJson(Map<String, dynamic> json) {
final tempRequiredJson = json['required'];
final NodeSelector? tempRequired = tempRequiredJson != null
? NodeSelector.fromJson(tempRequiredJson)
: null;
return VolumeNodeAffinity(
required: tempRequired,
);
}