WorkerHealthReport.fromJson constructor
WorkerHealthReport.fromJson(
- Map json_
Implementation
WorkerHealthReport.fromJson(core.Map json_)
: this(
msg: json_.containsKey('msg') ? json_['msg'] as core.String : null,
pods: json_.containsKey('pods')
? (json_['pods'] as core.List)
.map((value) => value as core.Map<core.String, core.dynamic>)
.toList()
: null,
reportInterval: json_.containsKey('reportInterval')
? json_['reportInterval'] as core.String
: null,
vmBrokenCode: json_.containsKey('vmBrokenCode')
? json_['vmBrokenCode'] as core.String
: null,
vmIsBroken: json_.containsKey('vmIsBroken')
? json_['vmIsBroken'] as core.bool
: null,
vmIsHealthy: json_.containsKey('vmIsHealthy')
? json_['vmIsHealthy'] as core.bool
: null,
vmStartupTime: json_.containsKey('vmStartupTime')
? json_['vmStartupTime'] as core.String
: null,
);