toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case StatusType.active:
      return 'Active';
    case StatusType.inactive:
      return 'Inactive';
  }
}