AttachedDisk.fromJson constructor

AttachedDisk.fromJson(
  1. Map json_
)

Implementation

AttachedDisk.fromJson(core.Map json_)
    : this(
        architecture: json_.containsKey('architecture')
            ? json_['architecture'] as core.String
            : null,
        autoDelete: json_.containsKey('autoDelete')
            ? json_['autoDelete'] as core.bool
            : null,
        boot: json_.containsKey('boot') ? json_['boot'] as core.bool : null,
        deviceName: json_.containsKey('deviceName')
            ? json_['deviceName'] as core.String
            : null,
        diskEncryptionKey: json_.containsKey('diskEncryptionKey')
            ? CustomerEncryptionKey.fromJson(json_['diskEncryptionKey']
                as core.Map<core.String, core.dynamic>)
            : null,
        diskSizeGb: json_.containsKey('diskSizeGb')
            ? json_['diskSizeGb'] as core.String
            : null,
        forceAttach: json_.containsKey('forceAttach')
            ? json_['forceAttach'] as core.bool
            : null,
        guestOsFeatures: json_.containsKey('guestOsFeatures')
            ? (json_['guestOsFeatures'] as core.List)
                .map((value) => GuestOsFeature.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        index: json_.containsKey('index') ? json_['index'] as core.int : null,
        initializeParams: json_.containsKey('initializeParams')
            ? AttachedDiskInitializeParams.fromJson(json_['initializeParams']
                as core.Map<core.String, core.dynamic>)
            : null,
        interface: json_.containsKey('interface')
            ? json_['interface'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        licenses: json_.containsKey('licenses')
            ? (json_['licenses'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        mode: json_.containsKey('mode') ? json_['mode'] as core.String : null,
        savedState: json_.containsKey('savedState')
            ? json_['savedState'] as core.String
            : null,
        shieldedInstanceInitialState:
            json_.containsKey('shieldedInstanceInitialState')
                ? InitialStateConfig.fromJson(
                    json_['shieldedInstanceInitialState']
                        as core.Map<core.String, core.dynamic>)
                : null,
        source: json_.containsKey('source')
            ? json_['source'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );