ListTasksResponse.fromJson constructor

ListTasksResponse.fromJson(
  1. Map _json
)

Implementation

ListTasksResponse.fromJson(core.Map _json) {
  if (_json.containsKey("nextPageToken")) {
    nextPageToken = _json["nextPageToken"];
  }
  if (_json.containsKey("tasks")) {
    tasks = (_json["tasks"] as core.List)
        .map<Task>((value) => new Task.fromJson(value))
        .toList();
  }
}