ReportWorkItemStatusResponse.fromJson constructor

ReportWorkItemStatusResponse.fromJson(
  1. Map _json
)

Implementation

ReportWorkItemStatusResponse.fromJson(core.Map _json)
    : this(
        unifiedWorkerResponse: _json.containsKey('unifiedWorkerResponse')
            ? (_json['unifiedWorkerResponse']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.Object,
                ),
              )
            : null,
        workItemServiceStates: _json.containsKey('workItemServiceStates')
            ? (_json['workItemServiceStates'] as core.List)
                .map<WorkItemServiceState>((value) =>
                    WorkItemServiceState.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );