toValue method
Implementation
String toValue() {
switch (this) {
case UserStatusType.active:
return 'ACTIVE';
case UserStatusType.inactive:
return 'INACTIVE';
case UserStatusType.pending:
return 'PENDING';
}
}
String toValue() {
switch (this) {
case UserStatusType.active:
return 'ACTIVE';
case UserStatusType.inactive:
return 'INACTIVE';
case UserStatusType.pending:
return 'PENDING';
}
}