GithubCopilotSessionModel class abstract
Model for managing Copilot sessions.
Copilotのセッションを管理するモデル。
- Available extensions
- Annotations
-
- @freezed
- @formValue
- @immutable
- @CollectionModelPath.new("organization/:organization_id/repository/:repository_id/session", adapter: "GithubModelMasamuneAdapter.primary.modelAdapter")
Constructors
- 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.new(GithubCopilotSessionStatus.none) GithubCopilotSessionStatus status, ModelTimestamp? completedAt, @Default.new(ModelTimestamp()) ModelTimestamp createdAt, @Default.new(ModelTimestamp()) ModelTimestamp updatedAt, @Default.new(false) bool fromServer})
-
Model for managing Copilot sessions.
constfactory
-
GithubCopilotSessionModel.fromJson(Map<
String, Object?> json) -
Convert from JSON.
factory
Properties
- agentId → String?
-
no setterinherited
- completedAt → ModelTimestamp?
-
no setterinherited
-
copyWith
→ $GithubCopilotSessionModelCopyWith<
GithubCopilotSessionModel> -
Create a copy of GithubCopilotSessionModel
with the given fields replaced by the non-null parameter values.
no setterinherited
- createdAt → ModelTimestamp
-
no setterinherited
- errorCode → String?
-
no setterinherited
- errorMessage → String?
-
no setterinherited
- fromServer → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setterinherited
- name → String?
-
no setterinherited
- pullRequestBaseRef → String?
-
no setterinherited
- pullRequestId → String?
-
no setterinherited
- pullRequestNumber → int?
-
no setterinherited
- pullRequestUrl → String?
-
no setterinherited
- resourceId → String?
-
no setterinherited
- resourceType → String?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → GithubCopilotSessionStatus
-
no setterinherited
- updatedAt → ModelTimestamp
-
no setterinherited
- userId → String?
-
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_GithubCopilotSessionModel value)) → TResult -
Available on GithubCopilotSessionModel, provided by the GithubCopilotSessionModelPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_GithubCopilotSessionModel value)?) → TResult? -
Available on GithubCopilotSessionModel, provided by the GithubCopilotSessionModelPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_GithubCopilotSessionModel value)?, {required TResult orElse()}) → TResult -
Available on GithubCopilotSessionModel, provided by the GithubCopilotSessionModelPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String id, String? name, String? resourceType, String? resourceId, String? userId, String? agentId, String? errorMessage, String? errorCode, int? pullRequestNumber, String? pullRequestUrl, String? pullRequestId, String? pullRequestBaseRef, GithubCopilotSessionStatus status, ModelTimestamp? completedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)?, {required TResult orElse()}) → TResult -
Available on GithubCopilotSessionModel, provided by the GithubCopilotSessionModelPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this GithubCopilotSessionModel to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String id, String? name, String? resourceType, String? resourceId, String? userId, String? agentId, String? errorMessage, String? errorCode, int? pullRequestNumber, String? pullRequestUrl, String? pullRequestId, String? pullRequestBaseRef, GithubCopilotSessionStatus status, ModelTimestamp? completedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)) → TResult -
Available on GithubCopilotSessionModel, provided by the GithubCopilotSessionModelPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String id, String? name, String? resourceType, String? resourceId, String? userId, String? agentId, String? errorMessage, String? errorCode, int? pullRequestNumber, String? pullRequestUrl, String? pullRequestId, String? pullRequestBaseRef, GithubCopilotSessionStatus status, ModelTimestamp? completedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)?) → TResult? -
Available on GithubCopilotSessionModel, provided by the GithubCopilotSessionModelPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- collection → const _$GithubCopilotSessionModelCollectionQuery
- Query for collection.
- document → const _$GithubCopilotSessionModelDocumentQuery
- Query for document.
- form → const _$GithubCopilotSessionModelFormQuery
- Query for form value.