toGrpcRetryPolicyEvent method
Implementation
GrpcRetryPolicyEvent toGrpcRetryPolicyEvent() {
switch (this) {
case 'cancelled':
return GrpcRetryPolicyEvent.cancelled;
case 'deadline-exceeded':
return GrpcRetryPolicyEvent.deadlineExceeded;
case 'internal':
return GrpcRetryPolicyEvent.internal;
case 'resource-exhausted':
return GrpcRetryPolicyEvent.resourceExhausted;
case 'unavailable':
return GrpcRetryPolicyEvent.unavailable;
}
throw Exception('$this is not known in enum GrpcRetryPolicyEvent');
}