GithubActionsJobModelPatterns extension
Adds pattern-matching-related methods to GithubActionsJobModel.
Methods
-
map<
TResult extends Object?> (TResult $default(_GithubActionsJobModel value)) → TResult -
Available on GithubActionsJobModel, provided by the GithubActionsJobModelPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_GithubActionsJobModel value)?) → TResult? -
Available on GithubActionsJobModel, provided by the GithubActionsJobModelPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_GithubActionsJobModel value)?, {required TResult orElse()}) → TResult -
Available on GithubActionsJobModel, provided by the GithubActionsJobModelPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(int? id, int? runId, int? runAttempt, String? name, String? runnerName, int? runnerId, int? runnerGroupId, String? status, String? conclusion, List< String> labels, GithubUserModel? runner, List<GithubActionsStepValue> steps, ModelUri? url, ModelUri? htmlUrl, ModelUri? logsUrl, ModelTimestamp? startedAt, ModelTimestamp? completedAt, bool fromServer)?, {required TResult orElse()}) → TResult -
Available on GithubActionsJobModel, provided by the GithubActionsJobModelPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(int? id, int? runId, int? runAttempt, String? name, String? runnerName, int? runnerId, int? runnerGroupId, String? status, String? conclusion, List< String> labels, GithubUserModel? runner, List<GithubActionsStepValue> steps, ModelUri? url, ModelUri? htmlUrl, ModelUri? logsUrl, ModelTimestamp? startedAt, ModelTimestamp? completedAt, bool fromServer)) → TResult -
Available on GithubActionsJobModel, provided by the GithubActionsJobModelPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(int? id, int? runId, int? runAttempt, String? name, String? runnerName, int? runnerId, int? runnerGroupId, String? status, String? conclusion, List< String> labels, GithubUserModel? runner, List<GithubActionsStepValue> steps, ModelUri? url, ModelUri? htmlUrl, ModelUri? logsUrl, ModelTimestamp? startedAt, ModelTimestamp? completedAt, bool fromServer)?) → TResult? -
Available on GithubActionsJobModel, provided by the GithubActionsJobModelPatterns extension
A variant ofwhenthat fallback to returningnull