deploymentListRows function

List<Map<String, Object?>> deploymentListRows(
  1. List<DeployAttempt> statuses
)

Implementation

List<Map<String, Object?>> deploymentListRows(
  final List<DeployAttempt> statuses,
) {
  return [
    for (final (index, attempt) in statuses.indexed)
      {
        'index': index,
        'projectId': attempt.cloudCapsuleId,
        'deployId': attempt.attemptId.toString(),
        'status': attempt.status?.name.toUpperCase(),
        'startedAt': attempt.startedAt,
        'finishedAt': attempt.endedAt,
        'info': attempt.statusInfo,
      },
  ];
}