Task.fromJson constructor
Task.fromJson(
- Map json_
Implementation
Task.fromJson(core.Map json_)
: this(
completed: json_.containsKey('completed')
? json_['completed'] as core.String
: null,
deleted: json_.containsKey('deleted')
? json_['deleted'] as core.bool
: null,
due: json_.containsKey('due') ? json_['due'] as core.String : null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
hidden:
json_.containsKey('hidden') ? json_['hidden'] as core.bool : null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
links: json_.containsKey('links')
? (json_['links'] as core.List)
.map((value) => TaskLinks.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
notes:
json_.containsKey('notes') ? json_['notes'] as core.String : null,
parent: json_.containsKey('parent')
? json_['parent'] as core.String
: null,
position: json_.containsKey('position')
? json_['position'] as core.String
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
status: json_.containsKey('status')
? json_['status'] as core.String
: null,
title:
json_.containsKey('title') ? json_['title'] as core.String : null,
updated: json_.containsKey('updated')
? json_['updated'] as core.String
: null,
webViewLink: json_.containsKey('webViewLink')
? json_['webViewLink'] as core.String
: null,
);