ComputeEngineDisksTargetDetails.fromJson constructor

ComputeEngineDisksTargetDetails.fromJson(
  1. Map json_
)

Implementation

ComputeEngineDisksTargetDetails.fromJson(core.Map json_)
    : this(
        disks: json_.containsKey('disks')
            ? (json_['disks'] as core.List)
                .map((value) => PersistentDisk.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        disksTargetDetails: json_.containsKey('disksTargetDetails')
            ? DisksMigrationDisksTargetDetails.fromJson(
                json_['disksTargetDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        vmTargetDetails: json_.containsKey('vmTargetDetails')
            ? DisksMigrationVmTargetDetails.fromJson(json_['vmTargetDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
      );