toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accelerators != null) 'accelerators': accelerators!,
      if (diskConfig != null) 'diskConfig': diskConfig!,
      if (imageUri != null) 'imageUri': imageUri!,
      if (instanceFlexibilityPolicy != null)
        'instanceFlexibilityPolicy': instanceFlexibilityPolicy!,
      if (instanceNames != null) 'instanceNames': instanceNames!,
      if (instanceReferences != null)
        'instanceReferences': instanceReferences!,
      if (isPreemptible != null) 'isPreemptible': isPreemptible!,
      if (machineTypeUri != null) 'machineTypeUri': machineTypeUri!,
      if (managedGroupConfig != null)
        'managedGroupConfig': managedGroupConfig!,
      if (minCpuPlatform != null) 'minCpuPlatform': minCpuPlatform!,
      if (minNumInstances != null) 'minNumInstances': minNumInstances!,
      if (numInstances != null) 'numInstances': numInstances!,
      if (preemptibility != null) 'preemptibility': preemptibility!,
      if (startupConfig != null) 'startupConfig': startupConfig!,
    };