in yuqing-20220301/alibabacloud_yuqing20220301/models.py [0:0]
def from_map(self, m: dict = None):
m = m or dict()
if m.get('appName') is not None:
self.app_name = m.get('appName')
if m.get('appScore') is not None:
self.app_score = m.get('appScore')
if m.get('appStoreName') is not None:
self.app_store_name = m.get('appStoreName')
if m.get('atAuthorNames') is not None:
self.at_author_names = m.get('atAuthorNames')
if m.get('audioCount') is not None:
self.audio_count = m.get('audioCount')
if m.get('authorAvatarUrl') is not None:
self.author_avatar_url = m.get('authorAvatarUrl')
if m.get('authorFollowersCount') is not None:
self.author_followers_count = m.get('authorFollowersCount')
if m.get('authorFriendsCount') is not None:
self.author_friends_count = m.get('authorFriendsCount')
if m.get('authorGender') is not None:
self.author_gender = m.get('authorGender')
if m.get('authorId') is not None:
self.author_id = m.get('authorId')
if m.get('authorLikesCount') is not None:
self.author_likes_count = m.get('authorLikesCount')
if m.get('authorName') is not None:
self.author_name = m.get('authorName')
if m.get('authorProfileUrl') is not None:
self.author_profile_url = m.get('authorProfileUrl')
if m.get('authorStatusesCount') is not None:
self.author_statuses_count = m.get('authorStatusesCount')
if m.get('authorVerified') is not None:
self.author_verified = m.get('authorVerified')
if m.get('authorVerifyType') is not None:
self.author_verify_type = m.get('authorVerifyType')
if m.get('contentAudioText') is not None:
self.content_audio_text = m.get('contentAudioText')
if m.get('contentAudioUrls') is not None:
self.content_audio_urls = m.get('contentAudioUrls')
if m.get('contentImageText') is not None:
self.content_image_text = m.get('contentImageText')
if m.get('contentImageUrls') is not None:
self.content_image_urls = m.get('contentImageUrls')
if m.get('contentLang') is not None:
self.content_lang = m.get('contentLang')
if m.get('contentLen') is not None:
self.content_len = m.get('contentLen')
if m.get('contentVideoText') is not None:
self.content_video_text = m.get('contentVideoText')
if m.get('contentVideoUrls') is not None:
self.content_video_urls = m.get('contentVideoUrls')
if m.get('createTime') is not None:
self.create_time = m.get('createTime')
if m.get('docAnswersCount') is not None:
self.doc_answers_count = m.get('docAnswersCount')
if m.get('docAreas') is not None:
self.doc_areas = m.get('docAreas')
if m.get('docCoinCount') is not None:
self.doc_coin_count = m.get('docCoinCount')
if m.get('docCommentsCount') is not None:
self.doc_comments_count = m.get('docCommentsCount')
if m.get('docContent') is not None:
self.doc_content = m.get('docContent')
if m.get('docContentBrief') is not None:
self.doc_content_brief = m.get('docContentBrief')
if m.get('docContentSign') is not None:
self.doc_content_sign = m.get('docContentSign')
if m.get('docId') is not None:
self.doc_id = m.get('docId')
if m.get('docLikesCount') is not None:
self.doc_likes_count = m.get('docLikesCount')
if m.get('docPlayCount') is not None:
self.doc_play_count = m.get('docPlayCount')
if m.get('docReadingCount') is not None:
self.doc_reading_count = m.get('docReadingCount')
if m.get('docReadsCount') is not None:
self.doc_reads_count = m.get('docReadsCount')
if m.get('docRepostsCount') is not None:
self.doc_reposts_count = m.get('docRepostsCount')
if m.get('docReprintName') is not None:
self.doc_reprint_name = m.get('docReprintName')
if m.get('docSelfContentSign') is not None:
self.doc_self_content_sign = m.get('docSelfContentSign')
if m.get('docTitle') is not None:
self.doc_title = m.get('docTitle')
if m.get('docUrl') is not None:
self.doc_url = m.get('docUrl')
if m.get('emotionScore') is not None:
self.emotion_score = m.get('emotionScore')
if m.get('emotionType') is not None:
self.emotion_type = m.get('emotionType')
if m.get('extInfo') is not None:
self.ext_info = m.get('extInfo')
if m.get('finEventCount') is not None:
self.fin_event_count = m.get('finEventCount')
self.finance_event_list = []
if m.get('financeEventList') is not None:
for k in m.get('financeEventList'):
temp_model = YuqingFinanceEvent()
self.finance_event_list.append(temp_model.from_map(k))
if m.get('highlightKeywords') is not None:
self.highlight_keywords = m.get('highlightKeywords')
if m.get('imageCount') is not None:
self.image_count = m.get('imageCount')
if m.get('influenceScore') is not None:
self.influence_score = m.get('influenceScore')
if m.get('mediaHosts') is not None:
self.media_hosts = m.get('mediaHosts')
if m.get('mediaInfluenceLevel') is not None:
self.media_influence_level = m.get('mediaInfluenceLevel')
if m.get('mediaName') is not None:
self.media_name = m.get('mediaName')
if m.get('mediaPropagationLevel') is not None:
self.media_propagation_level = m.get('mediaPropagationLevel')
if m.get('mediaType') is not None:
self.media_type = m.get('mediaType')
if m.get('messageType') is not None:
self.message_type = m.get('messageType')
if m.get('parentDocId') is not None:
self.parent_doc_id = m.get('parentDocId')
if m.get('propagationScore') is not None:
self.propagation_score = m.get('propagationScore')
if m.get('publishTime') is not None:
self.publish_time = m.get('publishTime')
if m.get('relevanceScore') is not None:
self.relevance_score = m.get('relevanceScore')
if m.get('reportMaterialTags') is not None:
self.report_material_tags = m.get('reportMaterialTags')
if m.get('repostList') is not None:
self.repost_list = m.get('repostList')
if m.get('similarNumber') is not None:
self.similar_number = m.get('similarNumber')
if m.get('topics') is not None:
self.topics = m.get('topics')
if m.get('videoCount') is not None:
self.video_count = m.get('videoCount')
if m.get('weiboCommentId') is not None:
self.weibo_comment_id = m.get('weiboCommentId')
if m.get('weiboMid') is not None:
self.weibo_mid = m.get('weiboMid')
return self