LeaseWorkItemRequest.fromJson constructor
LeaseWorkItemRequest.fromJson(
- Map json_
Implementation
LeaseWorkItemRequest.fromJson(core.Map json_)
: this(
currentWorkerTime: json_.containsKey('currentWorkerTime')
? json_['currentWorkerTime'] as core.String
: null,
location: json_.containsKey('location')
? json_['location'] as core.String
: null,
requestedLeaseDuration: json_.containsKey('requestedLeaseDuration')
? json_['requestedLeaseDuration'] as core.String
: null,
unifiedWorkerRequest: json_.containsKey('unifiedWorkerRequest')
? json_['unifiedWorkerRequest']
as core.Map<core.String, core.dynamic>
: null,
workItemTypes: json_.containsKey('workItemTypes')
? (json_['workItemTypes'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
workerCapabilities: json_.containsKey('workerCapabilities')
? (json_['workerCapabilities'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
workerId: json_.containsKey('workerId')
? json_['workerId'] as core.String
: null,
);