WorkerMessage.fromJson constructor
WorkerMessage.fromJson(
- Map json_
Implementation
WorkerMessage.fromJson(core.Map json_)
: this(
dataSamplingReport: json_.containsKey('dataSamplingReport')
? DataSamplingReport.fromJson(json_['dataSamplingReport']
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,
time: json_.containsKey('time') ? json_['time'] as core.String : null,
workerHealthReport: json_.containsKey('workerHealthReport')
? WorkerHealthReport.fromJson(json_['workerHealthReport']
as core.Map<core.String, core.dynamic>)
: null,
workerLifecycleEvent: json_.containsKey('workerLifecycleEvent')
? WorkerLifecycleEvent.fromJson(json_['workerLifecycleEvent']
as core.Map<core.String, core.dynamic>)
: null,
workerMessageCode: json_.containsKey('workerMessageCode')
? WorkerMessageCode.fromJson(json_['workerMessageCode']
as core.Map<core.String, core.dynamic>)
: null,
workerMetrics: json_.containsKey('workerMetrics')
? ResourceUtilizationReport.fromJson(
json_['workerMetrics'] as core.Map<core.String, core.dynamic>)
: null,
workerShutdownNotice: json_.containsKey('workerShutdownNotice')
? WorkerShutdownNotice.fromJson(json_['workerShutdownNotice']
as core.Map<core.String, core.dynamic>)
: null,
workerThreadScalingReport:
json_.containsKey('workerThreadScalingReport')
? WorkerThreadScalingReport.fromJson(
json_['workerThreadScalingReport']
as core.Map<core.String, core.dynamic>)
: null,
);