Files
sdk-for-flutter/lib/src/models/execution_list.dart
T
2026-03-25 06:40:43 +00:00

31 lines
753 B
Dart

part of '../../models.dart';
/// Executions List
class ExecutionList implements Model {
/// Total number of executions 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))),
);
}
@override
Map<String, dynamic> toMap() {
return {
"total": total,
"executions": executions.map((p) => p.toMap()).toList(),
};
}
}