GithubContentModel class abstract
Model for managing Github contents.
Githubのコンテンツを管理するためのモデル。
- Available extensions
- Annotations
-
- @freezed
- @formValue
- @immutable
- @CollectionModelPath.new("organization/:organization_id/repository/:repository_id/branch/:branch_id/commit/:commit_id/content", adapter: "GithubModelMasamuneAdapter.primary.modelAdapter")
Constructors
-
GithubContentModel({String? name, String? path, String? content, String? sha, String? type, String? encoding, String? patch, String? status, @refParam GithubUserModelRef? committer, @Default.new(0) int size, @Default.new(0) int additionsCount, @Default.new(0) int deletionsCount, @Default.new(0) int changesCount, ModelUri? rawUrl, ModelUri? blobUrl, ModelUri? htmlUrl, ModelUri? gitUrl, ModelUri? downloadUrl, @jsonParam List<
GithubContentModel> ? children, @Default.new(false) bool fromServer}) -
Model for managing Github contents.
constfactory
-
GithubContentModel.fromJson(Map<
String, Object?> json) -
Convert from JSON.
factory
Properties
- additionsCount → int
-
no setterinherited
- blobUrl → ModelUri?
-
no setterinherited
- changesCount → int
-
no setterinherited
-
children
→ List<
GithubContentModel> ? -
no setterinherited
- committer → GithubUserModelRef?
-
no setterinherited
- content → String?
-
no setterinherited
-
copyWith
→ $GithubContentModelCopyWith<
GithubContentModel> -
Create a copy of GithubContentModel
with the given fields replaced by the non-null parameter values.
no setterinherited
- deletionsCount → int
-
no setterinherited
- downloadUrl → ModelUri?
-
no setterinherited
- encoding → String?
-
no setterinherited
- fromServer → bool
-
no setterinherited
- gitUrl → ModelUri?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- htmlUrl → ModelUri?
-
no setterinherited
- name → String?
-
no setterinherited
- patch → String?
-
no setterinherited
- path → String?
-
no setterinherited
- rawUrl → ModelUri?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sha → String?
-
no setterinherited
- size → int
-
no setterinherited
- status → String?
-
no setterinherited
- text → String?
-
The value in
content
Base-64 decoded.no setter - type → String?
-
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_GithubContentModel value)) → TResult -
Available on GithubContentModel, provided by the GithubContentModelPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_GithubContentModel value)?) → TResult? -
Available on GithubContentModel, provided by the GithubContentModelPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_GithubContentModel value)?, {required TResult orElse()}) → TResult -
Available on GithubContentModel, provided by the GithubContentModelPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String? name, String? path, String? content, String? sha, String? type, String? encoding, String? patch, String? status, GithubUserModelRef? committer, int size, int additionsCount, int deletionsCount, int changesCount, ModelUri? rawUrl, ModelUri? blobUrl, ModelUri? htmlUrl, ModelUri? gitUrl, ModelUri? downloadUrl, List< GithubContentModel> ? children, bool fromServer)?, {required TResult orElse()}) → TResult -
Available on GithubContentModel, provided by the GithubContentModelPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this GithubContentModel to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String? name, String? path, String? content, String? sha, String? type, String? encoding, String? patch, String? status, GithubUserModelRef? committer, int size, int additionsCount, int deletionsCount, int changesCount, ModelUri? rawUrl, ModelUri? blobUrl, ModelUri? htmlUrl, ModelUri? gitUrl, ModelUri? downloadUrl, List< GithubContentModel> ? children, bool fromServer)) → TResult -
Available on GithubContentModel, provided by the GithubContentModelPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? name, String? path, String? content, String? sha, String? type, String? encoding, String? patch, String? status, GithubUserModelRef? committer, int size, int additionsCount, int deletionsCount, int changesCount, ModelUri? rawUrl, ModelUri? blobUrl, ModelUri? htmlUrl, ModelUri? gitUrl, ModelUri? downloadUrl, List< GithubContentModel> ? children, bool fromServer)?) → TResult? -
Available on GithubContentModel, provided by the GithubContentModelPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- collection → const _$GithubContentModelCollectionQuery
- Query for collection.
- document → const _$GithubContentModelDocumentQuery
- Query for document.
- form → const _$GithubContentModelFormQuery
- Query for form value.