mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-14 17:47:57 -05:00
Restructuring the Repo to make it clear the difference between classic autogpt and the autogpt platform: * Move the "classic" projects `autogpt`, `forge`, `frontend`, and `benchmark` into a `classic` folder * Also rename `autogpt` to `original_autogpt` for absolute clarity * Rename `rnd/` to `autogpt_platform/` * `rnd/autogpt_builder` -> `autogpt_platform/frontend` * `rnd/autogpt_server` -> `autogpt_platform/backend` * Adjust any paths accordingly
20 lines
565 B
Dart
20 lines
565 B
Dart
import 'package:auto_gpt_flutter_client/models/pagination.dart';
|
|
import 'package:auto_gpt_flutter_client/models/task.dart';
|
|
|
|
class TaskResponse {
|
|
final List<Task> tasks;
|
|
final Pagination pagination;
|
|
|
|
TaskResponse({required this.tasks, required this.pagination});
|
|
|
|
factory TaskResponse.fromJson(Map<String, dynamic> json) {
|
|
return TaskResponse(
|
|
tasks: (json['tasks'] as List).map((taskJson) {
|
|
var task = Task.fromMap(taskJson);
|
|
return task;
|
|
}).toList(),
|
|
pagination: Pagination.fromJson(json['pagination']),
|
|
);
|
|
}
|
|
}
|