SavedAttachedDisk.fromJson constructor

SavedAttachedDisk.fromJson(
  1. Map json_
)

Implementation

SavedAttachedDisk.fromJson(core.Map json_)
    : this(
        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,
        diskType: json_.containsKey('diskType')
            ? json_['diskType'] 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,
        index: json_.containsKey('index') ? json_['index'] as core.int : 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,
        source: json_.containsKey('source')
            ? json_['source'] as core.String
            : null,
        storageBytes: json_.containsKey('storageBytes')
            ? json_['storageBytes'] as core.String
            : null,
        storageBytesStatus: json_.containsKey('storageBytesStatus')
            ? json_['storageBytesStatus'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );