toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (asyncClusterEndpointsDeletionEnabled != null)
        'asyncClusterEndpointsDeletionEnabled':
            asyncClusterEndpointsDeletionEnabled!,
      if (authorizationMode != null) 'authorizationMode': authorizationMode!,
      if (automatedBackupConfig != null)
        'automatedBackupConfig': automatedBackupConfig!,
      if (backupCollection != null) 'backupCollection': backupCollection!,
      if (clusterEndpoints != null) 'clusterEndpoints': clusterEndpoints!,
      if (createTime != null) 'createTime': createTime!,
      if (crossClusterReplicationConfig != null)
        'crossClusterReplicationConfig': crossClusterReplicationConfig!,
      if (deletionProtectionEnabled != null)
        'deletionProtectionEnabled': deletionProtectionEnabled!,
      if (discoveryEndpoints != null)
        'discoveryEndpoints': discoveryEndpoints!,
      if (encryptionInfo != null) 'encryptionInfo': encryptionInfo!,
      if (gcsSource != null) 'gcsSource': gcsSource!,
      if (kmsKey != null) 'kmsKey': kmsKey!,
      if (maintenancePolicy != null) 'maintenancePolicy': maintenancePolicy!,
      if (maintenanceSchedule != null)
        'maintenanceSchedule': maintenanceSchedule!,
      if (managedBackupSource != null)
        'managedBackupSource': managedBackupSource!,
      if (name != null) 'name': name!,
      if (nodeType != null) 'nodeType': nodeType!,
      if (ondemandMaintenance != null)
        'ondemandMaintenance': ondemandMaintenance!,
      if (persistenceConfig != null) 'persistenceConfig': persistenceConfig!,
      if (preciseSizeGb != null) 'preciseSizeGb': preciseSizeGb!,
      if (pscConfigs != null) 'pscConfigs': pscConfigs!,
      if (pscConnections != null) 'pscConnections': pscConnections!,
      if (pscServiceAttachments != null)
        'pscServiceAttachments': pscServiceAttachments!,
      if (redisConfigs != null) 'redisConfigs': redisConfigs!,
      if (replicaCount != null) 'replicaCount': replicaCount!,
      if (shardCount != null) 'shardCount': shardCount!,
      if (sizeGb != null) 'sizeGb': sizeGb!,
      if (state != null) 'state': state!,
      if (stateInfo != null) 'stateInfo': stateInfo!,
      if (transitEncryptionMode != null)
        'transitEncryptionMode': transitEncryptionMode!,
      if (uid != null) 'uid': uid!,
      if (zoneDistributionConfig != null)
        'zoneDistributionConfig': zoneDistributionConfig!,
    };