package com.ss.android.ugc.aweme.shortvideo.model;

import android.text.TextUtils;
import com.bytedance.covode.number.Covode;
import com.google.gson.Gson;
import com.google.gson.a.c;
import com.ss.android.ugc.aweme.base.model.UrlModel;
import com.ss.android.ugc.aweme.poi.PoiData;
import com.ss.android.ugc.aweme.shortvideo.BaseShortVideoContext;
import com.ss.android.ugc.aweme.shortvideo.edit.ShopOrderShareStructInfo;
import com.ss.android.ugc.aweme.sticker.data.CreateAnchorInfo;
import java.util.List;

public class PublishExtensionModel {
    @c(LIZ = "anchor_business_type")
    public int anchorBusinessType = -1;
    @c(LIZ = "anchor_content")
    public String anchorContent;
    @c(LIZ = "anchor_icon")
    public UrlModel anchorIcon;
    @c(LIZ = "anchor_id")
    public String anchorId = "";
    @c(LIZ = "subtype")
    public String anchorSubtype = "";
    @c(LIZ = "anchor_tag")
    public String anchorTag;
    @c(LIZ = "anchor_title")
    public String anchorTitle;
    @c(LIZ = "anchors")
    public List<CreateAnchorInfo> createAnchorInfos;
    public String dataType;
    @c(LIZ = "is_from_commercial_sound_page")
    public boolean fromCommercialSoundPage;
    @c(LIZ = "mp_url")
    public String mpUrl;
    @c(LIZ = "open_url")
    public String openUrl;
    @c(LIZ = "outer_star_atlas")
    public String outerStarAtlas;
    @c(LIZ = "poi_data")
    public PoiData poiData;
    @c(LIZ = "recommend_anchor")
    public List<AnchorPublishStruct> recommendAnchor;
    public String referSeedId;
    public String referSeedName;
    @c(LIZ = "related_hot_sentence")
    public String relatedHotSentence;
    public String seedId;
    public String seedName;
    @c(LIZ = "sentence_id")
    public String sentenceId;
    @c(LIZ = "shop_order_share_structinfo")
    public ShopOrderShareStructInfo shopOrderShareStructInfo;
    @c(LIZ = "source")
    public int source;
    @c(LIZ = "web_url")
    public String webUrl;
    @c(LIZ = "zip_uri")
    public String zipUri;

    static {
        Covode.recordClassIndex(111037);
    }

    public static String toString(PublishExtensionModel publishExtensionModel) {
        if (publishExtensionModel == null) {
            return null;
        }
        return new Gson().LIZIZ(publishExtensionModel);
    }

    public static PublishExtensionModel fromContext(BaseShortVideoContext baseShortVideoContext) {
        if (baseShortVideoContext == null || TextUtils.isEmpty(baseShortVideoContext.commerceData)) {
            return new PublishExtensionModel();
        }
        return (PublishExtensionModel) new Gson().LIZ(baseShortVideoContext.commerceData, PublishExtensionModel.class);
    }

    public static PublishExtensionModel fromString(String str) {
        if (TextUtils.isEmpty(str)) {
            return new PublishExtensionModel();
        }
        return (PublishExtensionModel) new Gson().LIZ(str, PublishExtensionModel.class);
    }
}
