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

import X.C5019Hci;
import X.C5020Hcj;
import com.bytedance.covode.number.Covode;
import com.google.gson.Gson;
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.multiedit.data.MultiEditVideoSegmentRecordData;
import java.lang.reflect.Type;

public final class MultiEditVideoSegmentRecordDataDeserializer implements i<MultiEditVideoSegmentRecordData> {
    public static final C5019Hci LIZ = new C5019Hci((byte) 0);

    static {
        Covode.recordClassIndex(66291);
    }

    private MultiEditVideoSegmentRecordData LIZ(j jVar) {
        m mVar;
        if (jVar != null) {
            try {
                mVar = jVar.LJIIL();
            } catch (Exception unused) {
                return null;
            }
        } else {
            mVar = null;
        }
        if (mVar != null) {
            C5020Hcj.LIZIZ(mVar, "video_path");
            C5020Hcj.LIZIZ(mVar, "video_path", "new_video_path");
        }
        if (mVar != null) {
            C5020Hcj.LIZIZ(mVar, "draft_video_path");
            C5020Hcj.LIZIZ(mVar, "draft_video_path", "new_draft_video_path");
        }
        return (MultiEditVideoSegmentRecordData) new Gson().LIZ(mVar, MultiEditVideoSegmentRecordData.class);
    }

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