decode method

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

Implementation

@override
ReferralReconAdditionalFields decode(dynamic value) {
  switch (value) {
    case "deliveryStrategy":
      return ReferralReconAdditionalFields.deliveryStrategy;
    case "cycleIndex":
      return ReferralReconAdditionalFields.cycleIndex;
    case "doseIndex":
      return ReferralReconAdditionalFields.doseIndex;
    case "dateOfVerification":
      return ReferralReconAdditionalFields.dateOfVerification;
    case "dateOfAdministration":
      return ReferralReconAdditionalFields.dateOfAdministration;
    case "dateOfDelivery":
      return ReferralReconAdditionalFields.dateOfDelivery;
    case "referralComments":
      return ReferralReconAdditionalFields.referralComments;
    case "cycle":
      return ReferralReconAdditionalFields.cycle;
    case "hfCoordinator":
      return ReferralReconAdditionalFields.hFCoordinator;
    case "referredBy":
      return ReferralReconAdditionalFields.referredBy;
    case "dateOfEvaluation":
      return ReferralReconAdditionalFields.dateOfEvaluation;
    case "nameOfReferral":
      return ReferralReconAdditionalFields.nameOfReferral;
    case "gender":
      return ReferralReconAdditionalFields.gender;
    case "age":
      return ReferralReconAdditionalFields.age;
    case "deliveryComment":
      return ReferralReconAdditionalFields.deliveryComment;
    case "latitude":
      return ReferralReconAdditionalFields.latitude;
    case "longitude":
      return ReferralReconAdditionalFields.longitude;
    default:
      throw MapperException.unknownEnumValue(value);
  }
}