GithubActionsJobModel constructor

  1. @JsonSerializable.new(explicitToJson: true)
const GithubActionsJobModel({
  1. int? id,
  2. int? runId,
  3. int? runAttempt,
  4. String? name,
  5. String? runnerName,
  6. int? runnerId,
  7. int? runnerGroupId,
  8. String? status,
  9. String? conclusion,
  10. @Default.new(<String>[]) List<String> labels,
  11. @jsonParam GithubUserModel? runner,
  12. @Default.new(<GithubActionsStepValue>[]) @jsonParam List<GithubActionsStepValue> steps,
  13. ModelUri? url,
  14. ModelUri? htmlUrl,
  15. ModelUri? logsUrl,
  16. ModelTimestamp? startedAt,
  17. ModelTimestamp? completedAt,
  18. @Default.new(false) bool fromServer,
})

Value for model.

Implementation

// ignore: invalid_annotation_target
@JsonSerializable(explicitToJson: true)
const factory GithubActionsJobModel({
  int? id,
  int? runId,
  int? runAttempt,
  String? name,
  String? runnerName,
  int? runnerId,
  int? runnerGroupId,
  String? status,
  String? conclusion,
  @Default(<String>[]) List<String> labels,
  @jsonParam GithubUserModel? runner,
  @Default(<GithubActionsStepValue>[])
  @jsonParam
  List<GithubActionsStepValue> steps,
  ModelUri? url,
  ModelUri? htmlUrl,
  ModelUri? logsUrl,
  ModelTimestamp? startedAt,
  ModelTimestamp? completedAt,
  @Default(false) bool fromServer,
}) = _GithubActionsJobModel;