package com.ss.android.ugc.aweme.dmt_integration.typeadapter;

import X.C5020Hcj;
import X.C5024Hcn;
import com.bytedance.covode.number.Covode;
import com.google.gson.e;
import com.google.gson.h;
import com.google.gson.i;
import com.google.gson.j;
import com.google.gson.m;
import com.ss.android.ugc.aweme.shortvideo.edit.model.EditPreviewInfo;
import com.ss.android.ugc.aweme.shortvideo.edit.model.EditVideoSegment;
import java.lang.reflect.Type;
import kotlin.h.b.n;

public final class EditPreviewInfoDeserializer implements i<EditPreviewInfo> {
    public static final C5024Hcn LIZ = new C5024Hcn((byte) 0);

    static {
        Covode.recordClassIndex(66282);
    }

    private EditPreviewInfo LIZ(j jVar) {
        if (jVar == null) {
            return null;
        }
        try {
            m LJIIL = jVar.LJIIL();
            n.LIZIZ(LJIIL, "");
            C5020Hcj.LIZ(LJIIL, "reverseVideoArray");
            C5020Hcj.LIZ(LJIIL, "tempVideoArray");
            e eVar = new e();
            eVar.LIZLLL = true;
            eVar.LIZ(EditVideoSegment.class, new EditVideoSegmentDeserializer());
            return (EditPreviewInfo) eVar.LIZIZ().LIZ(LJIIL, EditPreviewInfo.class);
        } catch (Exception unused) {
            return null;
        }
    }

    public final /* bridge */ /* synthetic */ Object LIZ(j jVar, Type type, h hVar) {
        return LIZ(jVar);
    }
}
