Task.fromJson constructor
Task.fromJson(
- Map json_
Implementation
Task.fromJson(core.Map json_)
: this(
appEngineHttpRequest: json_.containsKey('appEngineHttpRequest')
? AppEngineHttpRequest.fromJson(json_['appEngineHttpRequest']
as core.Map<core.String, core.dynamic>)
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
dispatchCount: json_.containsKey('dispatchCount')
? json_['dispatchCount'] as core.int
: null,
dispatchDeadline: json_.containsKey('dispatchDeadline')
? json_['dispatchDeadline'] as core.String
: null,
firstAttempt: json_.containsKey('firstAttempt')
? Attempt.fromJson(
json_['firstAttempt'] as core.Map<core.String, core.dynamic>)
: null,
httpRequest: json_.containsKey('httpRequest')
? HttpRequest.fromJson(
json_['httpRequest'] as core.Map<core.String, core.dynamic>)
: null,
lastAttempt: json_.containsKey('lastAttempt')
? Attempt.fromJson(
json_['lastAttempt'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
responseCount: json_.containsKey('responseCount')
? json_['responseCount'] as core.int
: null,
scheduleTime: json_.containsKey('scheduleTime')
? json_['scheduleTime'] as core.String
: null,
view: json_.containsKey('view') ? json_['view'] as core.String : null,
);