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,
      );