GithubRepositoryPermissionValue class abstract
Model for managing Github repository permissions.
Githubのリポジトリ権限を管理するためのモデル。
- Available extensions
- Annotations
-
- @freezed
- @formValue
- @immutable
Constructors
- GithubRepositoryPermissionValue({@Default.new(false) bool admin, @Default.new(false) bool push, @Default.new(false) bool pull})
-
Model for managing Github repository permissions.
constfactory
-
GithubRepositoryPermissionValue.fromJson(Map<
String, Object?> json) -
Convert from JSON.
factory
Properties
- admin → bool
-
no setterinherited
-
copyWith
→ $GithubRepositoryPermissionValueCopyWith<
GithubRepositoryPermissionValue> -
Create a copy of GithubRepositoryPermissionValue
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- pull → bool
-
no setterinherited
- push → bool
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_GithubRepositoryPermissionValue value)) → TResult -
Available on GithubRepositoryPermissionValue, provided by the GithubRepositoryPermissionValuePatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_GithubRepositoryPermissionValue value)?) → TResult? -
Available on GithubRepositoryPermissionValue, provided by the GithubRepositoryPermissionValuePatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_GithubRepositoryPermissionValue value)?, {required TResult orElse()}) → TResult -
Available on GithubRepositoryPermissionValue, provided by the GithubRepositoryPermissionValuePatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(bool admin, bool push, bool pull)?, {required TResult orElse()}) → TResult -
Available on GithubRepositoryPermissionValue, provided by the GithubRepositoryPermissionValuePatterns 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 GithubRepositoryPermissionValue to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(bool admin, bool push, bool pull)) → TResult -
Available on GithubRepositoryPermissionValue, provided by the GithubRepositoryPermissionValuePatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(bool admin, bool push, bool pull)?) → TResult? -
Available on GithubRepositoryPermissionValue, provided by the GithubRepositoryPermissionValuePatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- form → const _$GithubRepositoryPermissionValueFormQuery
- Query for form value.