decode method

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

Implementation

@override
ReferralReconEnums decode(dynamic value) {
  switch (value) {
    case "dateOfVerification":
      return ReferralReconEnums.dateOfVerification;
    case "dateOfAdministration":
      return ReferralReconEnums.dateOfAdministration;
    case "dateOfDelivery":
      return ReferralReconEnums.dateOfDelivery;
    case "referralComments":
      return ReferralReconEnums.referralComments;
    case "cycle":
      return ReferralReconEnums.cycle;
    case "hfCoordinator":
      return ReferralReconEnums.hFCoordinator;
    case "referredBy":
      return ReferralReconEnums.referredBy;
    case "dateOfEvaluation":
      return ReferralReconEnums.dateOfEvaluation;
    case "nameOfReferral":
      return ReferralReconEnums.nameOfReferral;
    case "gender":
      return ReferralReconEnums.gender;
    case "age":
      return ReferralReconEnums.age;
    case "VISITED":
      return ReferralReconEnums.visited;
    default:
      throw MapperException.unknownEnumValue(value);
  }
}