GithubCommitModel class abstract

Model for managing Github commits.

Githubのコミットを管理するためのモデル。

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

Constructors

GithubCommitModel({String? sha, String? message, @Default.new(0) int commentCount, @Default.new(0) int additionsCount, @Default.new(0) int deletionsCount, @Default.new(0) int totalCount, ModelUri? url, ModelUri? htmlUrl, ModelUri? commentsUrl, @refParam GithubUserModelRef? author, @refParam GithubUserModelRef? committer, ModelTimestamp? authorDate, ModelTimestamp? committerDate, @jsonParam @Default.new([]) List<GithubCommitModel> parents, @jsonParam @Default.new([]) List<GithubContentModel> contents, @Default.new(false) bool fromServer})
Model for managing Github commits.
const
factory
GithubCommitModel.fromJson(Map<String, Object?> json)
Convert from JSON.
factory

Properties

additionsCount int
no setterinherited
author GithubUserModelRef?
no setterinherited
authorDate → ModelTimestamp?
no setterinherited
commentCount int
no setterinherited
commentsUrl → ModelUri?
no setterinherited
committer GithubUserModelRef?
no setterinherited
committerDate → ModelTimestamp?
no setterinherited
contents List<GithubContentModel>
no setterinherited
copyWith → $GithubCommitModelCopyWith<GithubCommitModel>
Create a copy of GithubCommitModel with the given fields replaced by the non-null parameter values.
no setterinherited
deletionsCount int
no setterinherited
fromServer bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
htmlUrl → ModelUri?
no setterinherited
message String?
no setterinherited
parents List<GithubCommitModel>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sha String?
no setterinherited
totalCount int
no setterinherited
url → ModelUri?
no setterinherited

Methods

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

Available on GithubCommitModel, provided by the GithubCommitModelPatterns extension

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

Available on GithubCommitModel, provided by the GithubCommitModelPatterns extension

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

Available on GithubCommitModel, provided by the GithubCommitModelPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String? sha, String? message, int commentCount, int additionsCount, int deletionsCount, int totalCount, ModelUri? url, ModelUri? htmlUrl, ModelUri? commentsUrl, GithubUserModelRef? author, GithubUserModelRef? committer, ModelTimestamp? authorDate, ModelTimestamp? committerDate, List<GithubCommitModel> parents, List<GithubContentModel> contents, bool fromServer)?, {required TResult orElse()}) → TResult

Available on GithubCommitModel, provided by the GithubCommitModelPatterns 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 GithubCommitModel to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String? sha, String? message, int commentCount, int additionsCount, int deletionsCount, int totalCount, ModelUri? url, ModelUri? htmlUrl, ModelUri? commentsUrl, GithubUserModelRef? author, GithubUserModelRef? committer, ModelTimestamp? authorDate, ModelTimestamp? committerDate, List<GithubCommitModel> parents, List<GithubContentModel> contents, bool fromServer)) → TResult

Available on GithubCommitModel, provided by the GithubCommitModelPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String? sha, String? message, int commentCount, int additionsCount, int deletionsCount, int totalCount, ModelUri? url, ModelUri? htmlUrl, ModelUri? commentsUrl, GithubUserModelRef? author, GithubUserModelRef? committer, ModelTimestamp? authorDate, ModelTimestamp? committerDate, List<GithubCommitModel> parents, List<GithubContentModel> contents, bool fromServer)?) → TResult?

Available on GithubCommitModel, provided by the GithubCommitModelPatterns extension

A variant of when that fallback to returning null

Operators

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

Constants

collection → const _$GithubCommitModelCollectionQuery
Query for collection.
document → const _$GithubCommitModelDocumentQuery
Query for document.
form → const _$GithubCommitModelFormQuery
Query for form value.