ResourceUtilizationReport.fromJson constructor
ResourceUtilizationReport.fromJson(
- Map json_
Implementation
ResourceUtilizationReport.fromJson(core.Map json_)
: this(
containers: json_.containsKey('containers')
? (json_['containers'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
ResourceUtilizationReport.fromJson(
value as core.Map<core.String, core.dynamic>),
),
)
: null,
cpuTime: json_.containsKey('cpuTime')
? (json_['cpuTime'] as core.List)
.map((value) => CPUTime.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
memoryInfo: json_.containsKey('memoryInfo')
? (json_['memoryInfo'] as core.List)
.map((value) => MemInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);