ComputeEngineDisksTargetDefaults.fromJson constructor

ComputeEngineDisksTargetDefaults.fromJson(
  1. Map json_
)

Implementation

ComputeEngineDisksTargetDefaults.fromJson(core.Map json_)
    : this(
        disks: json_.containsKey('disks')
            ? (json_['disks'] as core.List)
                .map((value) => PersistentDiskDefaults.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        disksTargetDefaults: json_.containsKey('disksTargetDefaults')
            ? DisksMigrationDisksTargetDefaults.fromJson(
                json_['disksTargetDefaults']
                    as core.Map<core.String, core.dynamic>)
            : null,
        targetProject: json_.containsKey('targetProject')
            ? json_['targetProject'] as core.String
            : null,
        vmTargetDefaults: json_.containsKey('vmTargetDefaults')
            ? DisksMigrationVmTargetDefaults.fromJson(
                json_['vmTargetDefaults']
                    as core.Map<core.String, core.dynamic>)
            : null,
        zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
      );