ListTasksResponse.fromJson constructor

ListTasksResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ListTasksResponse.fromJson(Map<String, dynamic> json) {
  return ListTasksResponse(
    nextToken: json['NextToken'] as String?,
    tasks: (json['Tasks'] as List?)
        ?.whereNotNull()
        .map((e) => TaskListEntry.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}