DeployedIndex.fromJson constructor
DeployedIndex.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DeployedIndex.fromJson(Map<String, dynamic> json) {
return DeployedIndex(
id: json['id'] ?? '',
index: json['index'] ?? '',
displayName: json['displayName'] ?? '',
createTime: decodeCustom(json['createTime'], protobuf.Timestamp.fromJson),
privateEndpoints: decode(
json['privateEndpoints'],
IndexPrivateEndpoints.fromJson,
),
indexSyncTime: decodeCustom(
json['indexSyncTime'],
protobuf.Timestamp.fromJson,
),
automaticResources: decode(
json['automaticResources'],
AutomaticResources.fromJson,
),
dedicatedResources: decode(
json['dedicatedResources'],
DedicatedResources.fromJson,
),
enableAccessLogging: json['enableAccessLogging'] ?? false,
enableDatapointUpsertLogging:
json['enableDatapointUpsertLogging'] ?? false,
deployedIndexAuthConfig: decode(
json['deployedIndexAuthConfig'],
DeployedIndexAuthConfig.fromJson,
),
reservedIpRanges: decodeList(json['reservedIpRanges']) ?? [],
deploymentGroup: json['deploymentGroup'] ?? '',
pscAutomationConfigs:
decodeListMessage(
json['pscAutomationConfigs'],
PscautomationConfig.fromJson,
) ??
[],
);
}