BackendBucket.fromJson constructor

BackendBucket.fromJson(
  1. Map json_
)

Implementation

BackendBucket.fromJson(core.Map json_)
    : this(
        bucketName: json_.containsKey('bucketName')
            ? json_['bucketName'] as core.String
            : null,
        cdnPolicy: json_.containsKey('cdnPolicy')
            ? BackendBucketCdnPolicy.fromJson(
                json_['cdnPolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        compressionMode: json_.containsKey('compressionMode')
            ? json_['compressionMode'] as core.String
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        customResponseHeaders: json_.containsKey('customResponseHeaders')
            ? (json_['customResponseHeaders'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        edgeSecurityPolicy: json_.containsKey('edgeSecurityPolicy')
            ? json_['edgeSecurityPolicy'] as core.String
            : null,
        enableCdn: json_.containsKey('enableCdn')
            ? json_['enableCdn'] as core.bool
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
      );