ResourceSelector.fromJson constructor
ResourceSelector.fromJson(
- Map json_
Implementation
ResourceSelector.fromJson(core.Map json_)
: this(
groupKind: json_.containsKey('groupKind')
? GroupKind.fromJson(
json_['groupKind'] as core.Map<core.String, core.dynamic>)
: null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
namespace: json_.containsKey('namespace')
? json_['namespace'] as core.String
: null,
);