Image.fromJson constructor

Image.fromJson(
  1. Map json_
)

Implementation

Image.fromJson(core.Map json_)
    : this(
        architecture: json_.containsKey('architecture')
            ? json_['architecture'] as core.String
            : null,
        archiveSizeBytes: json_.containsKey('archiveSizeBytes')
            ? json_['archiveSizeBytes'] as core.String
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        deprecated: json_.containsKey('deprecated')
            ? DeprecationStatus.fromJson(
                json_['deprecated'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        diskSizeGb: json_.containsKey('diskSizeGb')
            ? json_['diskSizeGb'] as core.String
            : null,
        enableConfidentialCompute:
            json_.containsKey('enableConfidentialCompute')
                ? json_['enableConfidentialCompute'] as core.bool
                : null,
        family: json_.containsKey('family')
            ? json_['family'] as core.String
            : null,
        guestOsFeatures: json_.containsKey('guestOsFeatures')
            ? (json_['guestOsFeatures'] as core.List)
                .map((value) => GuestOsFeature.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        imageEncryptionKey: json_.containsKey('imageEncryptionKey')
            ? CustomerEncryptionKey.fromJson(json_['imageEncryptionKey']
                as core.Map<core.String, core.dynamic>)
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        labelFingerprint: json_.containsKey('labelFingerprint')
            ? json_['labelFingerprint'] 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,
        licenseCodes: json_.containsKey('licenseCodes')
            ? (json_['licenseCodes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        licenses: json_.containsKey('licenses')
            ? (json_['licenses'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        rawDisk: json_.containsKey('rawDisk')
            ? ImageRawDisk.fromJson(
                json_['rawDisk'] as core.Map<core.String, core.dynamic>)
            : null,
        satisfiesPzi: json_.containsKey('satisfiesPzi')
            ? json_['satisfiesPzi'] as core.bool
            : null,
        satisfiesPzs: json_.containsKey('satisfiesPzs')
            ? json_['satisfiesPzs'] as core.bool
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        shieldedInstanceInitialState:
            json_.containsKey('shieldedInstanceInitialState')
                ? InitialStateConfig.fromJson(
                    json_['shieldedInstanceInitialState']
                        as core.Map<core.String, core.dynamic>)
                : null,
        sourceDisk: json_.containsKey('sourceDisk')
            ? json_['sourceDisk'] as core.String
            : null,
        sourceDiskEncryptionKey: json_.containsKey('sourceDiskEncryptionKey')
            ? CustomerEncryptionKey.fromJson(json_['sourceDiskEncryptionKey']
                as core.Map<core.String, core.dynamic>)
            : null,
        sourceDiskId: json_.containsKey('sourceDiskId')
            ? json_['sourceDiskId'] as core.String
            : 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,
        sourceImageId: json_.containsKey('sourceImageId')
            ? json_['sourceImageId'] as core.String
            : 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,
        sourceSnapshotId: json_.containsKey('sourceSnapshotId')
            ? json_['sourceSnapshotId'] as core.String
            : null,
        sourceType: json_.containsKey('sourceType')
            ? json_['sourceType'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        storageLocations: json_.containsKey('storageLocations')
            ? (json_['storageLocations'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );