BucketStorageLayout.fromJson constructor

BucketStorageLayout.fromJson(
  1. Map json_
)

Implementation

BucketStorageLayout.fromJson(core.Map json_)
    : this(
        bucket: json_.containsKey('bucket')
            ? json_['bucket'] as core.String
            : null,
        customPlacementConfig: json_.containsKey('customPlacementConfig')
            ? BucketStorageLayoutCustomPlacementConfig.fromJson(
                json_['customPlacementConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        hierarchicalNamespace: json_.containsKey('hierarchicalNamespace')
            ? BucketStorageLayoutHierarchicalNamespace.fromJson(
                json_['hierarchicalNamespace']
                    as core.Map<core.String, core.dynamic>)
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        location: json_.containsKey('location')
            ? json_['location'] as core.String
            : null,
        locationType: json_.containsKey('locationType')
            ? json_['locationType'] as core.String
            : null,
      );