toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (clusterName != null) 'clusterName': clusterName!,
      if (clusterUuid != null) 'clusterUuid': clusterUuid!,
      if (config != null) 'config': config!,
      if (labels != null) 'labels': labels!,
      if (metrics != null) 'metrics': metrics!,
      if (projectId != null) 'projectId': projectId!,
      if (status != null) 'status': status!,
      if (statusHistory != null) 'statusHistory': statusHistory!,
      if (virtualClusterConfig != null)
        'virtualClusterConfig': virtualClusterConfig!,
    };