Pod.fromJson constructor
Pod.fromJson(
- Map json_
Implementation
Pod.fromJson(core.Map json_)
: this(
containers: json_.containsKey('containers')
? (json_['containers'] as core.List)
.map((value) => Container.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.List)
.map((value) => Label.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
ns: json_.containsKey('ns') ? json_['ns'] as core.String : null,
);