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_['subTitle'] as core.String?,
      title: json_['title'] as core.String?,
      totalVolumes: json_['totalVolumes'] as core.int?,
      uid: json_['uid'] as core.String?,
      volumes:
          (json_['volumes'] as core.List?)
              ?.map(
                (value) => Volume.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
              )
              .toList(),
    );