toValue method
Implementation
String toValue() {
switch (this) {
case GrpcRetryPolicyEvent.cancelled:
return 'cancelled';
case GrpcRetryPolicyEvent.deadlineExceeded:
return 'deadline-exceeded';
case GrpcRetryPolicyEvent.internal:
return 'internal';
case GrpcRetryPolicyEvent.resourceExhausted:
return 'resource-exhausted';
case GrpcRetryPolicyEvent.unavailable:
return 'unavailable';
}
}