decode method

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

Implementation

@override
RegistrationDeliveryEnums decode(dynamic value) {
  switch (value) {
    case "name":
      return RegistrationDeliveryEnums.name;
    case "userName":
      return RegistrationDeliveryEnums.userName;
    case "IEC":
      return RegistrationDeliveryEnums.iec;
    default:
      throw MapperException.unknownEnumValue(value);
  }
}