Scheduling.fromJson constructor

Scheduling.fromJson(
  1. Map json_
)

Implementation

Scheduling.fromJson(core.Map json_)
    : this(
        automaticRestart: json_.containsKey('automaticRestart')
            ? json_['automaticRestart'] as core.bool
            : null,
        instanceTerminationAction:
            json_.containsKey('instanceTerminationAction')
                ? json_['instanceTerminationAction'] as core.String
                : null,
        localSsdRecoveryTimeout: json_.containsKey('localSsdRecoveryTimeout')
            ? Duration.fromJson(json_['localSsdRecoveryTimeout']
                as core.Map<core.String, core.dynamic>)
            : null,
        locationHint: json_.containsKey('locationHint')
            ? json_['locationHint'] as core.String
            : null,
        maxRunDuration: json_.containsKey('maxRunDuration')
            ? Duration.fromJson(json_['maxRunDuration']
                as core.Map<core.String, core.dynamic>)
            : null,
        minNodeCpus: json_.containsKey('minNodeCpus')
            ? json_['minNodeCpus'] as core.int
            : null,
        nodeAffinities: json_.containsKey('nodeAffinities')
            ? (json_['nodeAffinities'] as core.List)
                .map((value) => SchedulingNodeAffinity.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        onHostMaintenance: json_.containsKey('onHostMaintenance')
            ? json_['onHostMaintenance'] as core.String
            : null,
        onInstanceStopAction: json_.containsKey('onInstanceStopAction')
            ? SchedulingOnInstanceStopAction.fromJson(
                json_['onInstanceStopAction']
                    as core.Map<core.String, core.dynamic>)
            : null,
        preemptible: json_.containsKey('preemptible')
            ? json_['preemptible'] as core.bool
            : null,
        provisioningModel: json_.containsKey('provisioningModel')
            ? json_['provisioningModel'] as core.String
            : null,
        terminationTime: json_.containsKey('terminationTime')
            ? json_['terminationTime'] as core.String
            : null,
      );