toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (authorizationMode != null) 'authorizationMode': authorizationMode!,
      if (createTime != null) 'createTime': createTime!,
      if (deletionProtectionEnabled != null)
        'deletionProtectionEnabled': deletionProtectionEnabled!,
      if (discoveryEndpoints != null)
        'discoveryEndpoints': discoveryEndpoints!,
      if (name != null) 'name': name!,
      if (nodeType != null) 'nodeType': nodeType!,
      if (persistenceConfig != null) 'persistenceConfig': persistenceConfig!,
      if (preciseSizeGb != null) 'preciseSizeGb': preciseSizeGb!,
      if (pscConfigs != null) 'pscConfigs': pscConfigs!,
      if (pscConnections != null) 'pscConnections': pscConnections!,
      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!,
    };