MachineImage.fromJson constructor

MachineImage.fromJson(
  1. Map json_
)

Implementation

MachineImage.fromJson(core.Map json_)
    : this(
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        guestFlush: json_.containsKey('guestFlush')
            ? json_['guestFlush'] as core.bool
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        instanceProperties: json_.containsKey('instanceProperties')
            ? InstanceProperties.fromJson(json_['instanceProperties']
                as core.Map<core.String, core.dynamic>)
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        machineImageEncryptionKey:
            json_.containsKey('machineImageEncryptionKey')
                ? CustomerEncryptionKey.fromJson(
                    json_['machineImageEncryptionKey']
                        as core.Map<core.String, core.dynamic>)
                : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        satisfiesPzi: json_.containsKey('satisfiesPzi')
            ? json_['satisfiesPzi'] as core.bool
            : null,
        satisfiesPzs: json_.containsKey('satisfiesPzs')
            ? json_['satisfiesPzs'] as core.bool
            : null,
        savedDisks: json_.containsKey('savedDisks')
            ? (json_['savedDisks'] as core.List)
                .map((value) => SavedDisk.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        sourceDiskEncryptionKeys:
            json_.containsKey('sourceDiskEncryptionKeys')
                ? (json_['sourceDiskEncryptionKeys'] as core.List)
                    .map((value) => SourceDiskEncryptionKey.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        sourceInstance: json_.containsKey('sourceInstance')
            ? json_['sourceInstance'] as core.String
            : null,
        sourceInstanceProperties:
            json_.containsKey('sourceInstanceProperties')
                ? SourceInstanceProperties.fromJson(
                    json_['sourceInstanceProperties']
                        as core.Map<core.String, core.dynamic>)
                : 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,
        totalStorageBytes: json_.containsKey('totalStorageBytes')
            ? json_['totalStorageBytes'] as core.String
            : null,
      );