Volume.fromJson constructor

Volume.fromJson(
  1. Map json_
)

Implementation

Volume.fromJson(core.Map json_)
    : this(
        accessInfo: json_.containsKey('accessInfo')
            ? VolumeAccessInfo.fromJson(
                json_['accessInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        layerInfo: json_.containsKey('layerInfo')
            ? VolumeLayerInfo.fromJson(
                json_['layerInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        recommendedInfo: json_.containsKey('recommendedInfo')
            ? VolumeRecommendedInfo.fromJson(json_['recommendedInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        saleInfo: json_.containsKey('saleInfo')
            ? VolumeSaleInfo.fromJson(
                json_['saleInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        searchInfo: json_.containsKey('searchInfo')
            ? VolumeSearchInfo.fromJson(
                json_['searchInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        userInfo: json_.containsKey('userInfo')
            ? VolumeUserInfo.fromJson(
                json_['userInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        volumeInfo: json_.containsKey('volumeInfo')
            ? VolumeVolumeInfo.fromJson(
                json_['volumeInfo'] as core.Map<core.String, core.dynamic>)
            : null,
      );