NodeAffinity.fromJson constructor
NodeAffinity.fromJson(
- Map json_
Implementation
NodeAffinity.fromJson(core.Map json_)
: this(
key: json_.containsKey('key') ? json_['key'] as core.String : null,
operator: json_.containsKey('operator')
? json_['operator'] as core.String
: null,
values: json_.containsKey('values')
? (json_['values'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);