Secret.fromJson constructor

Secret.fromJson(
  1. Map json_
)

Implementation

Secret.fromJson(core.Map json_)
    : this(
        annotations: json_.containsKey('annotations')
            ? (json_['annotations'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        customerManagedEncryption:
            json_.containsKey('customerManagedEncryption')
                ? CustomerManagedEncryption.fromJson(
                    json_['customerManagedEncryption']
                        as core.Map<core.String, core.dynamic>)
                : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        expireTime: json_.containsKey('expireTime')
            ? json_['expireTime'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        replication: json_.containsKey('replication')
            ? Replication.fromJson(
                json_['replication'] as core.Map<core.String, core.dynamic>)
            : null,
        rotation: json_.containsKey('rotation')
            ? Rotation.fromJson(
                json_['rotation'] as core.Map<core.String, core.dynamic>)
            : null,
        topics: json_.containsKey('topics')
            ? (json_['topics'] as core.List)
                .map((value) => Topic.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        ttl: json_.containsKey('ttl') ? json_['ttl'] as core.String : null,
        versionAliases: json_.containsKey('versionAliases')
            ? (json_['versionAliases'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        versionDestroyTtl: json_.containsKey('versionDestroyTtl')
            ? json_['versionDestroyTtl'] as core.String
            : null,
      );