toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case RegistrationStatus.registered:
      return 'Registered';
    case RegistrationStatus.deregistered:
      return 'Deregistered';
  }
}