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