GithubCopilotSessionModel constructor

const GithubCopilotSessionModel({
  1. required String id,
  2. String? name,
  3. String? resourceType,
  4. String? resourceId,
  5. String? userId,
  6. String? agentId,
  7. String? errorMessage,
  8. String? errorCode,
  9. int? pullRequestNumber,
  10. String? pullRequestUrl,
  11. String? pullRequestId,
  12. String? pullRequestBaseRef,
  13. @Default.new(GithubCopilotSessionStatus.none) GithubCopilotSessionStatus status,
  14. ModelTimestamp? completedAt,
  15. @Default.new(ModelTimestamp()) ModelTimestamp createdAt,
  16. @Default.new(ModelTimestamp()) ModelTimestamp updatedAt,
  17. @Default.new(false) bool fromServer,
})

Model for managing Copilot sessions.

Copilotのセッションを管理するモデル。

Implementation

const factory GithubCopilotSessionModel({
  required String id,
  String? name,
  String? resourceType,
  String? resourceId,
  String? userId,
  String? agentId,
  String? errorMessage,
  String? errorCode,
  int? pullRequestNumber,
  String? pullRequestUrl,
  String? pullRequestId,
  String? pullRequestBaseRef,
  @Default(GithubCopilotSessionStatus.none) GithubCopilotSessionStatus status,
  ModelTimestamp? completedAt,
  @Default(ModelTimestamp()) ModelTimestamp createdAt,
  @Default(ModelTimestamp()) ModelTimestamp updatedAt,
  @Default(false) bool fromServer,
}) = _GithubCopilotSessionModel;