toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (automaticRestart != null) 'automaticRestart': automaticRestart!,
      if (instanceTerminationAction != null)
        'instanceTerminationAction': instanceTerminationAction!,
      if (localSsdRecoveryTimeout != null)
        'localSsdRecoveryTimeout': localSsdRecoveryTimeout!,
      if (locationHint != null) 'locationHint': locationHint!,
      if (maxRunDuration != null) 'maxRunDuration': maxRunDuration!,
      if (minNodeCpus != null) 'minNodeCpus': minNodeCpus!,
      if (nodeAffinities != null) 'nodeAffinities': nodeAffinities!,
      if (onHostMaintenance != null) 'onHostMaintenance': onHostMaintenance!,
      if (onInstanceStopAction != null)
        'onInstanceStopAction': onInstanceStopAction!,
      if (preemptible != null) 'preemptible': preemptible!,
      if (provisioningModel != null) 'provisioningModel': provisioningModel!,
      if (terminationTime != null) 'terminationTime': terminationTime!,
    };