MigratingVm.fromJson constructor

MigratingVm.fromJson(
  1. Map json_
)

Implementation

MigratingVm.fromJson(core.Map json_)
    : this(
        awsSourceVmDetails: json_.containsKey('awsSourceVmDetails')
            ? AwsSourceVmDetails.fromJson(json_['awsSourceVmDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        azureSourceVmDetails: json_.containsKey('azureSourceVmDetails')
            ? AzureSourceVmDetails.fromJson(json_['azureSourceVmDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        computeEngineDisksTargetDefaults:
            json_.containsKey('computeEngineDisksTargetDefaults')
                ? ComputeEngineDisksTargetDefaults.fromJson(
                    json_['computeEngineDisksTargetDefaults']
                        as core.Map<core.String, core.dynamic>)
                : null,
        computeEngineTargetDefaults:
            json_.containsKey('computeEngineTargetDefaults')
                ? ComputeEngineTargetDefaults.fromJson(
                    json_['computeEngineTargetDefaults']
                        as core.Map<core.String, core.dynamic>)
                : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        currentSyncInfo: json_.containsKey('currentSyncInfo')
            ? ReplicationCycle.fromJson(json_['currentSyncInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        cutoverForecast: json_.containsKey('cutoverForecast')
            ? CutoverForecast.fromJson(json_['cutoverForecast']
                as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        error: json_.containsKey('error')
            ? Status.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>)
            : null,
        group:
            json_.containsKey('group') ? json_['group'] as core.String : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        lastReplicationCycle: json_.containsKey('lastReplicationCycle')
            ? ReplicationCycle.fromJson(json_['lastReplicationCycle']
                as core.Map<core.String, core.dynamic>)
            : null,
        lastSync: json_.containsKey('lastSync')
            ? ReplicationSync.fromJson(
                json_['lastSync'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        policy: json_.containsKey('policy')
            ? SchedulePolicy.fromJson(
                json_['policy'] as core.Map<core.String, core.dynamic>)
            : null,
        recentCloneJobs: json_.containsKey('recentCloneJobs')
            ? (json_['recentCloneJobs'] as core.List)
                .map((value) => CloneJob.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        recentCutoverJobs: json_.containsKey('recentCutoverJobs')
            ? (json_['recentCutoverJobs'] as core.List)
                .map((value) => CutoverJob.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        sourceVmId: json_.containsKey('sourceVmId')
            ? json_['sourceVmId'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        stateTime: json_.containsKey('stateTime')
            ? json_['stateTime'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        vmwareSourceVmDetails: json_.containsKey('vmwareSourceVmDetails')
            ? VmwareSourceVmDetails.fromJson(json_['vmwareSourceVmDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
      );