toValue method
Implementation
String toValue() {
switch (this) {
case ErrorCode.accessDenied:
return 'AccessDenied';
case ErrorCode.internalServerError:
return 'InternalServerError';
}
}
String toValue() {
switch (this) {
case ErrorCode.accessDenied:
return 'AccessDenied';
case ErrorCode.internalServerError:
return 'InternalServerError';
}
}