GithubActionsModel class abstract

Value for model.

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

Constructors

GithubActionsModel({int? id, int? workflowId, int? runNumber, int? runAttempt, String? name, String? displayTitle, String? event, String? status, String? conclusion, String? headBranch, String? headSha, String? path, @jsonParam GithubUserModel? actor, @jsonParam GithubUserModel? triggeringActor, @refParam GithubRepositoryModelRef? repository, ModelUri? url, ModelUri? htmlUrl, ModelUri? jobsUrl, ModelUri? logsUrl, ModelUri? artifactsUrl, ModelUri? cancelUrl, ModelUri? rerunUrl, ModelUri? workflowUrl, ModelUri? checkSuiteUrl, ModelUri? previousAttemptUrl, ModelTimestamp? runStartedAt, @Default.new(ModelTimestamp.now()) ModelTimestamp createdAt, @Default.new(ModelTimestamp.now()) ModelTimestamp updatedAt, @Default.new(false) bool fromServer})
Value for model.
const
factory
GithubActionsModel.fromJson(Map<String, Object?> json)
Convert from JSON.
factory

Properties

actor GithubUserModel?
no setterinherited
artifactsUrl → ModelUri?
no setterinherited
cancelUrl → ModelUri?
no setterinherited
checkSuiteUrl → ModelUri?
no setterinherited
conclusion String?
no setterinherited
copyWith → $GithubActionsModelCopyWith<GithubActionsModel>
Create a copy of GithubActionsModel with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt → ModelTimestamp
no setterinherited
displayTitle String?
no setterinherited
event String?
no setterinherited
fromServer bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
headBranch String?
no setterinherited
headSha String?
no setterinherited
htmlUrl → ModelUri?
no setterinherited
id int?
no setterinherited
jobsUrl → ModelUri?
no setterinherited
logsUrl → ModelUri?
no setterinherited
name String?
no setterinherited
path String?
no setterinherited
previousAttemptUrl → ModelUri?
no setterinherited
repository GithubRepositoryModelRef?
no setterinherited
rerunUrl → ModelUri?
no setterinherited
runAttempt int?
no setterinherited
runNumber int?
no setterinherited
runStartedAt → ModelTimestamp?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String?
no setterinherited
triggeringActor GithubUserModel?
no setterinherited
updatedAt → ModelTimestamp
no setterinherited
url → ModelUri?
no setterinherited
workflowId int?
no setterinherited
workflowUrl → ModelUri?
no setterinherited

Methods

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

Available on GithubActionsModel, provided by the GithubActionsModelPatterns extension

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

Available on GithubActionsModel, provided by the GithubActionsModelPatterns extension

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

Available on GithubActionsModel, provided by the GithubActionsModelPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(int? id, int? workflowId, int? runNumber, int? runAttempt, String? name, String? displayTitle, String? event, String? status, String? conclusion, String? headBranch, String? headSha, String? path, GithubUserModel? actor, GithubUserModel? triggeringActor, GithubRepositoryModelRef? repository, ModelUri? url, ModelUri? htmlUrl, ModelUri? jobsUrl, ModelUri? logsUrl, ModelUri? artifactsUrl, ModelUri? cancelUrl, ModelUri? rerunUrl, ModelUri? workflowUrl, ModelUri? checkSuiteUrl, ModelUri? previousAttemptUrl, ModelTimestamp? runStartedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)?, {required TResult orElse()}) → TResult

Available on GithubActionsModel, provided by the GithubActionsModelPatterns 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 GithubActionsModel to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(int? id, int? workflowId, int? runNumber, int? runAttempt, String? name, String? displayTitle, String? event, String? status, String? conclusion, String? headBranch, String? headSha, String? path, GithubUserModel? actor, GithubUserModel? triggeringActor, GithubRepositoryModelRef? repository, ModelUri? url, ModelUri? htmlUrl, ModelUri? jobsUrl, ModelUri? logsUrl, ModelUri? artifactsUrl, ModelUri? cancelUrl, ModelUri? rerunUrl, ModelUri? workflowUrl, ModelUri? checkSuiteUrl, ModelUri? previousAttemptUrl, ModelTimestamp? runStartedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)) → TResult

Available on GithubActionsModel, provided by the GithubActionsModelPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(int? id, int? workflowId, int? runNumber, int? runAttempt, String? name, String? displayTitle, String? event, String? status, String? conclusion, String? headBranch, String? headSha, String? path, GithubUserModel? actor, GithubUserModel? triggeringActor, GithubRepositoryModelRef? repository, ModelUri? url, ModelUri? htmlUrl, ModelUri? jobsUrl, ModelUri? logsUrl, ModelUri? artifactsUrl, ModelUri? cancelUrl, ModelUri? rerunUrl, ModelUri? workflowUrl, ModelUri? checkSuiteUrl, ModelUri? previousAttemptUrl, ModelTimestamp? runStartedAt, ModelTimestamp createdAt, ModelTimestamp updatedAt, bool fromServer)?) → TResult?

Available on GithubActionsModel, provided by the GithubActionsModelPatterns extension

A variant of when that fallback to returning null

Operators

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

Constants

collection → const _$GithubActionsModelCollectionQuery
Query for collection.
document → const _$GithubActionsModelDocumentQuery
Query for document.
form → const _$GithubActionsModelFormQuery
Query for form value.