toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'id': id,
  'index': index,
  if (displayName.isNotDefault) 'displayName': displayName,
  'createTime': ?createTime?.toJson(),
  'privateEndpoints': ?privateEndpoints?.toJson(),
  'indexSyncTime': ?indexSyncTime?.toJson(),
  'automaticResources': ?automaticResources?.toJson(),
  'dedicatedResources': ?dedicatedResources?.toJson(),
  if (enableAccessLogging.isNotDefault)
    'enableAccessLogging': enableAccessLogging,
  if (enableDatapointUpsertLogging.isNotDefault)
    'enableDatapointUpsertLogging': enableDatapointUpsertLogging,
  'deployedIndexAuthConfig': ?deployedIndexAuthConfig?.toJson(),
  if (reservedIpRanges.isNotDefault) 'reservedIpRanges': reservedIpRanges,
  if (deploymentGroup.isNotDefault) 'deploymentGroup': deploymentGroup,
  if (pscAutomationConfigs.isNotDefault)
    'pscAutomationConfigs': [
      for (final i in pscAutomationConfigs) i.toJson(),
    ],
};