encode method

  1. @override
dynamic encode(
  1. RegisterStatus self
)

Implementation

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