encode method
Implementation
@override
dynamic encode(RegisterStatus self) {
switch (self) {
case RegisterStatus.active:
return "ACTIVE";
case RegisterStatus.inactive:
return "INACTIVE";
}
}
@override
dynamic encode(RegisterStatus self) {
switch (self) {
case RegisterStatus.active:
return "ACTIVE";
case RegisterStatus.inactive:
return "INACTIVE";
}
}