toValue method
Implementation
String toValue() {
switch (this) {
case Status.active:
return 'Active';
case Status.inactive:
return 'Inactive';
case Status.pending:
return 'Pending';
case Status.failed:
return 'Failed';
}
}