LeaseWorkItemResponse.fromJson constructor

LeaseWorkItemResponse.fromJson(
  1. Map json_
)

Implementation

LeaseWorkItemResponse.fromJson(core.Map json_)
    : this(
        unifiedWorkerResponse: json_.containsKey('unifiedWorkerResponse')
            ? json_['unifiedWorkerResponse']
                as core.Map<core.String, core.dynamic>
            : null,
        workItems: json_.containsKey('workItems')
            ? (json_['workItems'] as core.List)
                .map((value) => WorkItem.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );