toValue method
Implementation
String toValue() {
switch (this) {
case Status.preparing:
return 'PREPARING';
case Status.active:
return 'ACTIVE';
case Status.expired:
return 'EXPIRED';
}
}
String toValue() {
switch (this) {
case Status.preparing:
return 'PREPARING';
case Status.active:
return 'ACTIVE';
case Status.expired:
return 'EXPIRED';
}
}