ListTasksResponse.fromJson constructor

ListTasksResponse.fromJson(
  1. Map json_
)

Implementation

ListTasksResponse.fromJson(core.Map json_)
    : this(
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
        tasks: json_.containsKey('tasks')
            ? (json_['tasks'] as core.List)
                .map((value) => Task.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );