AttachedDiskInitializeParams.fromJson constructor

AttachedDiskInitializeParams.fromJson(
  1. Map json_
)

Implementation

AttachedDiskInitializeParams.fromJson(core.Map json_)
    : this(
        architecture: json_.containsKey('architecture')
            ? json_['architecture'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        diskName: json_.containsKey('diskName')
            ? json_['diskName'] as core.String
            : null,
        diskSizeGb: json_.containsKey('diskSizeGb')
            ? json_['diskSizeGb'] as core.String
            : null,
        diskType: json_.containsKey('diskType')
            ? json_['diskType'] as core.String
            : null,
        enableConfidentialCompute:
            json_.containsKey('enableConfidentialCompute')
                ? json_['enableConfidentialCompute'] 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,
        licenses: json_.containsKey('licenses')
            ? (json_['licenses'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        onUpdateAction: json_.containsKey('onUpdateAction')
            ? json_['onUpdateAction'] as core.String
            : null,
        provisionedIops: json_.containsKey('provisionedIops')
            ? json_['provisionedIops'] as core.String
            : null,
        provisionedThroughput: json_.containsKey('provisionedThroughput')
            ? json_['provisionedThroughput'] as core.String
            : null,
        replicaZones: json_.containsKey('replicaZones')
            ? (json_['replicaZones'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        resourceManagerTags: json_.containsKey('resourceManagerTags')
            ? (json_['resourceManagerTags']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        resourcePolicies: json_.containsKey('resourcePolicies')
            ? (json_['resourcePolicies'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        sourceImage: json_.containsKey('sourceImage')
            ? json_['sourceImage'] as core.String
            : null,
        sourceImageEncryptionKey: json_
                .containsKey('sourceImageEncryptionKey')
            ? CustomerEncryptionKey.fromJson(json_['sourceImageEncryptionKey']
                as core.Map<core.String, core.dynamic>)
            : null,
        sourceSnapshot: json_.containsKey('sourceSnapshot')
            ? json_['sourceSnapshot'] as core.String
            : null,
        sourceSnapshotEncryptionKey:
            json_.containsKey('sourceSnapshotEncryptionKey')
                ? CustomerEncryptionKey.fromJson(
                    json_['sourceSnapshotEncryptionKey']
                        as core.Map<core.String, core.dynamic>)
                : null,
        storagePool: json_.containsKey('storagePool')
            ? json_['storagePool'] as core.String
            : null,
      );