WorkerMessageResponse.fromJson constructor

WorkerMessageResponse.fromJson(
  1. Map json_
)

Implementation

WorkerMessageResponse.fromJson(core.Map json_)
    : this(
        workerHealthReportResponse:
            json_.containsKey('workerHealthReportResponse')
                ? WorkerHealthReportResponse.fromJson(
                    json_['workerHealthReportResponse']
                        as core.Map<core.String, core.dynamic>)
                : null,
        workerMetricsResponse: json_.containsKey('workerMetricsResponse')
            ? ResourceUtilizationReportResponse.fromJson(
                json_['workerMetricsResponse']
                    as core.Map<core.String, core.dynamic>)
            : null,
        workerShutdownNoticeResponse:
            json_.containsKey('workerShutdownNoticeResponse')
                ? WorkerShutdownNoticeResponse.fromJson(
                    json_['workerShutdownNoticeResponse']
                        as core.Map<core.String, core.dynamic>)
                : null,
        workerThreadScalingReportResponse:
            json_.containsKey('workerThreadScalingReportResponse')
                ? WorkerThreadScalingReportResponse.fromJson(
                    json_['workerThreadScalingReportResponse']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );