GithubCopilotSessionLogModel class abstract

Model for managing Copilot session logs.

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

Available extensions
Annotations
  • @freezed
  • @formValue
  • @immutable
  • @CollectionModelPath.new("organization/:organization_id/repository/:repository_id/session/:session_id/log", adapter: "GithubModelMasamuneAdapter.primary.modelAdapter")

Constructors

GithubCopilotSessionLogModel({required String id, required String sessionId, required String message, Map<String, dynamic>? metadata, String? toolName, String? toolResult, @Default.new(GithubCopilotSessionLogLevel.unknown) GithubCopilotSessionLogLevel level, @Default.new(ModelTimestamp()) ModelTimestamp timestamp, @Default.new(false) bool fromServer})
Model for managing Copilot session logs.
const
factory
GithubCopilotSessionLogModel.fromJson(Map<String, Object?> json)
Convert from JSON.
factory

Properties

copyWith → $GithubCopilotSessionLogModelCopyWith<GithubCopilotSessionLogModel>
Create a copy of GithubCopilotSessionLogModel with the given fields replaced by the non-null parameter values.
no setterinherited
fromServer bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
no setterinherited
level GithubCopilotSessionLogLevel
no setterinherited
message String
no setterinherited
metadata Map<String, dynamic>?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionId String
no setterinherited
timestamp → ModelTimestamp
no setterinherited
toolName String?
no setterinherited
toolResult String?
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_GithubCopilotSessionLogModel value)) → TResult

Available on GithubCopilotSessionLogModel, provided by the GithubCopilotSessionLogModelPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_GithubCopilotSessionLogModel value)?) → TResult?

Available on GithubCopilotSessionLogModel, provided by the GithubCopilotSessionLogModelPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_GithubCopilotSessionLogModel value)?, {required TResult orElse()}) → TResult

Available on GithubCopilotSessionLogModel, provided by the GithubCopilotSessionLogModelPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String id, String sessionId, String message, Map<String, dynamic>? metadata, String? toolName, String? toolResult, GithubCopilotSessionLogLevel level, ModelTimestamp timestamp, bool fromServer)?, {required TResult orElse()}) → TResult

Available on GithubCopilotSessionLogModel, provided by the GithubCopilotSessionLogModelPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this GithubCopilotSessionLogModel to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String id, String sessionId, String message, Map<String, dynamic>? metadata, String? toolName, String? toolResult, GithubCopilotSessionLogLevel level, ModelTimestamp timestamp, bool fromServer)) → TResult

Available on GithubCopilotSessionLogModel, provided by the GithubCopilotSessionLogModelPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String id, String sessionId, String message, Map<String, dynamic>? metadata, String? toolName, String? toolResult, GithubCopilotSessionLogLevel level, ModelTimestamp timestamp, bool fromServer)?) → TResult?

Available on GithubCopilotSessionLogModel, provided by the GithubCopilotSessionLogModelPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

collection → const _$GithubCopilotSessionLogModelCollectionQuery
Query for collection.
document → const _$GithubCopilotSessionLogModelDocumentQuery
Query for document.
form → const _$GithubCopilotSessionLogModelFormQuery
Query for form value.