encode method

Map<String, Object?> encode()

Implementation

Map<String, Object?> encode() => {
  if (labels != null) 'labels': labels!.toTfJson(),
  if (operatingSystem != null)
    'operating_system': operatingSystem!.toTfJson(),
  if (nodeConfigs != null)
    'node_configs': [for (final e in nodeConfigs!) e.encode()],
  if (taints != null) 'taints': [for (final e in taints!) e.encode()],
};