DiscoveryclustersClusters.fromJson constructor

DiscoveryclustersClusters.fromJson(
  1. Map json_
)

Implementation

DiscoveryclustersClusters.fromJson(core.Map json_)
    : this(
        bannerWithContentContainer: json_
                .containsKey('banner_with_content_container')
            ? DiscoveryclustersClustersBannerWithContentContainer.fromJson(
                json_['banner_with_content_container']
                    as core.Map<core.String, core.dynamic>)
            : null,
        subTitle: json_.containsKey('subTitle')
            ? json_['subTitle'] as core.String
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
        totalVolumes: json_.containsKey('totalVolumes')
            ? json_['totalVolumes'] as core.int
            : null,
        uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
        volumes: json_.containsKey('volumes')
            ? (json_['volumes'] as core.List)
                .map((value) => Volume.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );