package com.qualtrics.digital;

import java.lang.reflect.Type;

/* loaded from: classes3.dex */
class ExpressionDeserializer implements com.google.gson.h {
    private String b(com.google.gson.l lVar, String str) {
        if (lVar.B(str)) {
            return lVar.v(str).l();
        }
        return null;
    }

    @Override // com.google.gson.h
    /* renamed from: a, reason: merged with bridge method [inline-methods] */
    public p deserialize(com.google.gson.i iVar, Type type, com.google.gson.g gVar) {
        com.google.gson.l g10 = iVar.g();
        String b10 = b(g10, "Operator");
        String b11 = b(g10, "Type");
        String b12 = b(g10, "Conjuction");
        String lowerCase = g10.v("LogicType").l().toLowerCase();
        lowerCase.hashCode();
        char c10 = 65535;
        switch (lowerCase.hashCode()) {
            case -1479812907:
                if (lowerCase.equals("mobiletimeonsite")) {
                    c10 = 0;
                    break;
                }
                break;
            case -666487448:
                if (lowerCase.equals("mobilecustomproperty")) {
                    c10 = 1;
                    break;
                }
                break;
            case 99228:
                if (lowerCase.equals("day")) {
                    c10 = 2;
                    break;
                }
                break;
            case 3076014:
                if (lowerCase.equals("date")) {
                    c10 = 3;
                    break;
                }
                break;
            case 3560141:
                if (lowerCase.equals("time")) {
                    c10 = 4;
                    break;
                }
                break;
            case 234239358:
                if (lowerCase.equals("mobilepagecount")) {
                    c10 = 5;
                    break;
                }
                break;
            case 1301925318:
                if (lowerCase.equals("qualtricssurvey")) {
                    c10 = 6;
                    break;
                }
                break;
        }
        switch (c10) {
            case 0:
                return new m(b10, b11, b12, b(g10, "RightOperand"), b(g10, "TimeType"));
            case 1:
                return new e1(b10, b11, b12, b(g10, "Key"), b(g10, "RightOperand"), b(g10, "PropertyType"));
            case 2:
                return new k(b10, b11, b12, b(g10, "LeftOperand"), b(g10, "TimeZone"));
            case 3:
                return new j(b10, b11, b12, b(g10, "LeftOperand"), b(g10, "TimeZone"));
            case 4:
                return new d1(b10, b11, b12, b(g10, "LeftOperand"), b(g10, "TimeZone"));
            case 5:
                return new f1(b10, b11, b12, b(g10, "RightOperand"), b(g10, "CountType"));
            case 6:
                return new o0(b10, b11, b12, b(g10, "SurveyID"));
            default:
                return null;
        }
    }
}
