GoogleCloudKmsV1CryptoKey.fromJson constructor

GoogleCloudKmsV1CryptoKey.fromJson(
  1. Map json_
)

Implementation

GoogleCloudKmsV1CryptoKey.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        cryptoKeyBackend: json_.containsKey('cryptoKeyBackend')
            ? json_['cryptoKeyBackend'] as core.String
            : null,
        destroyScheduledDuration:
            json_.containsKey('destroyScheduledDuration')
                ? json_['destroyScheduledDuration'] as core.String
                : null,
        importOnly: json_.containsKey('importOnly')
            ? json_['importOnly'] as core.bool
            : 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,
        nextRotationTime: json_.containsKey('nextRotationTime')
            ? json_['nextRotationTime'] as core.String
            : null,
        primary: json_.containsKey('primary')
            ? GoogleCloudKmsV1CryptoKeyVersion.fromJson(
                json_['primary'] as core.Map<core.String, core.dynamic>)
            : null,
        purpose: json_.containsKey('purpose')
            ? json_['purpose'] as core.String
            : null,
        rotationPeriod: json_.containsKey('rotationPeriod')
            ? json_['rotationPeriod'] as core.String
            : null,
        versionTemplate: json_.containsKey('versionTemplate')
            ? GoogleCloudKmsV1CryptoKeyVersionTemplate.fromJson(
                json_['versionTemplate']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );