mirror of
https://github.com/appwrite/sdk-for-flutter.git
synced 2026-04-07 19:27:41 +00:00
28 lines
734 B
Dart
28 lines
734 B
Dart
part of appwrite.models;
|
|
|
|
/// Executions List
|
|
class ExecutionList implements Model {
|
|
/// Total number of executions documents that matched your query.
|
|
final int total;
|
|
/// List of executions.
|
|
final List<Execution> executions;
|
|
|
|
ExecutionList({ required this.total,
|
|
required this.executions,
|
|
});
|
|
|
|
factory ExecutionList.fromMap(Map<String, dynamic> map) {
|
|
return ExecutionList(
|
|
total: map['total'],
|
|
executions: List<Execution>.from(map['executions'].map((p) => Execution.fromMap(p))),
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> toMap() {
|
|
return {
|
|
"total": total,
|
|
"executions": executions.map((p) => p.toMap()),
|
|
};
|
|
}
|
|
}
|