toValue method
Implementation
String toValue() {
switch (this) {
case PullRequestEventType.pullRequestCreated:
return 'PULL_REQUEST_CREATED';
case PullRequestEventType.pullRequestStatusChanged:
return 'PULL_REQUEST_STATUS_CHANGED';
case PullRequestEventType.pullRequestSourceReferenceUpdated:
return 'PULL_REQUEST_SOURCE_REFERENCE_UPDATED';
case PullRequestEventType.pullRequestMergeStateChanged:
return 'PULL_REQUEST_MERGE_STATE_CHANGED';
case PullRequestEventType.pullRequestApprovalRuleCreated:
return 'PULL_REQUEST_APPROVAL_RULE_CREATED';
case PullRequestEventType.pullRequestApprovalRuleUpdated:
return 'PULL_REQUEST_APPROVAL_RULE_UPDATED';
case PullRequestEventType.pullRequestApprovalRuleDeleted:
return 'PULL_REQUEST_APPROVAL_RULE_DELETED';
case PullRequestEventType.pullRequestApprovalRuleOverridden:
return 'PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN';
case PullRequestEventType.pullRequestApprovalStateChanged:
return 'PULL_REQUEST_APPROVAL_STATE_CHANGED';
}
}