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 executions; ExecutionList({ required this.total, required this.executions, }); factory ExecutionList.fromMap(Map map) { return ExecutionList( total: map['total'], executions: List.from(map['executions'].map((p) => Execution.fromMap(p))), ); } @override Map toMap() { return { "total": total, "executions": executions.map((p) => p.toMap()).toList(), }; } }