package com.bytedance.android.livesdk.model.utils.adapter;

import X.0UO;
import com.bytedance.android.livesdk.model.FeedItem;
import com.bytedance.android.livesdkapi.depend.model.live.Room;
import com.bytedance.covode.number.Covode;
import com.google.gson.h;
import com.google.gson.i;
import com.google.gson.j;
import com.google.gson.m;
import com.google.gson.n;
import com.google.gson.q;
import com.google.gson.r;
import java.lang.reflect.Type;

public class FeedItemTypeAdapter implements i<FeedItem>, r<FeedItem> {
    static {
        Covode.recordClassIndex(19596);
    }

    private FeedItem LIZ(j jVar) {
        try {
            FeedItem feedItem = (FeedItem) 0UO.LIZJ.LIZ(jVar, FeedItem.class);
            feedItem.init();
            return feedItem;
        } catch (Exception unused) {
            throw new n("error type");
        }
    }

    public final /* synthetic */ j LIZ(Object obj, q qVar) {
        FeedItem feedItem = (FeedItem) obj;
        m LJIIL = 0UO.LIZJ.LIZ(feedItem).LJIIL();
        LJIIL.LIZ("data", 0UO.LIZJ.LIZ(feedItem.getRoom(), Room.class));
        return LJIIL;
    }

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