WorkerDetails.fromJson constructor

WorkerDetails.fromJson(
  1. Map json_
)

Implementation

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