getDataModelForEntityName static method

DataModelType getDataModelForEntityName(
  1. String entity
)

Implementation

static DataModelType getDataModelForEntityName(String entity) {
  switch (entity) {
    case 'Households':
      return DataModelType.household;
    case 'HouseholdMembers':
      return DataModelType.householdMember;
    case 'Individuals':
      return DataModelType.individual;
    case 'ProjectBeneficiaries':
      return DataModelType.projectBeneficiary;
    case 'Tasks':
      return DataModelType.task;
    case 'SideEffects':
      return DataModelType.sideEffect;
    case 'Referrals':
      return DataModelType.referral;
    case 'HFReferrals':
      return DataModelType.hFReferral;
    default:
      return DataModelType.householdMember;
  }
}