decode method

  1. @override
RegisterStatus decode(
  1. dynamic value
)

Implementation

@override
RegisterStatus decode(dynamic value) {
  switch (value) {
    case "ACTIVE":
      return RegisterStatus.active;
    case "INACTIVE":
      return RegisterStatus.inactive;
    default:
      throw MapperException.unknownEnumValue(value);
  }
}