ActivityContentDetails.fromJson constructor

ActivityContentDetails.fromJson(
  1. Map json_
)

Implementation

ActivityContentDetails.fromJson(core.Map json_)
    : this(
        bulletin: json_.containsKey('bulletin')
            ? ActivityContentDetailsBulletin.fromJson(
                json_['bulletin'] as core.Map<core.String, core.dynamic>)
            : null,
        channelItem: json_.containsKey('channelItem')
            ? ActivityContentDetailsChannelItem.fromJson(
                json_['channelItem'] as core.Map<core.String, core.dynamic>)
            : null,
        comment: json_.containsKey('comment')
            ? ActivityContentDetailsComment.fromJson(
                json_['comment'] as core.Map<core.String, core.dynamic>)
            : null,
        favorite: json_.containsKey('favorite')
            ? ActivityContentDetailsFavorite.fromJson(
                json_['favorite'] as core.Map<core.String, core.dynamic>)
            : null,
        like: json_.containsKey('like')
            ? ActivityContentDetailsLike.fromJson(
                json_['like'] as core.Map<core.String, core.dynamic>)
            : null,
        playlistItem: json_.containsKey('playlistItem')
            ? ActivityContentDetailsPlaylistItem.fromJson(
                json_['playlistItem'] as core.Map<core.String, core.dynamic>)
            : null,
        promotedItem: json_.containsKey('promotedItem')
            ? ActivityContentDetailsPromotedItem.fromJson(
                json_['promotedItem'] as core.Map<core.String, core.dynamic>)
            : null,
        recommendation: json_.containsKey('recommendation')
            ? ActivityContentDetailsRecommendation.fromJson(
                json_['recommendation']
                    as core.Map<core.String, core.dynamic>)
            : null,
        social: json_.containsKey('social')
            ? ActivityContentDetailsSocial.fromJson(
                json_['social'] as core.Map<core.String, core.dynamic>)
            : null,
        subscription: json_.containsKey('subscription')
            ? ActivityContentDetailsSubscription.fromJson(
                json_['subscription'] as core.Map<core.String, core.dynamic>)
            : null,
        upload: json_.containsKey('upload')
            ? ActivityContentDetailsUpload.fromJson(
                json_['upload'] as core.Map<core.String, core.dynamic>)
            : null,
      );