IndexEndpoint.fromJson constructor

IndexEndpoint.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory IndexEndpoint.fromJson(Map<String, dynamic> json) {
  return IndexEndpoint(
    name: json['name'] ?? '',
    displayName: json['displayName'] ?? '',
    description: json['description'] ?? '',
    deployedIndexes:
        decodeListMessage(json['deployedIndexes'], DeployedIndex.fromJson) ??
        [],
    etag: json['etag'] ?? '',
    labels: decodeMap(json['labels']) ?? {},
    createTime: decodeCustom(json['createTime'], protobuf.Timestamp.fromJson),
    updateTime: decodeCustom(json['updateTime'], protobuf.Timestamp.fromJson),
    network: json['network'] ?? '',
    enablePrivateServiceConnect: json['enablePrivateServiceConnect'] ?? false,
    privateServiceConnectConfig: decode(
      json['privateServiceConnectConfig'],
      PrivateServiceConnectConfig.fromJson,
    ),
    publicEndpointEnabled: json['publicEndpointEnabled'] ?? false,
    publicEndpointDomainName: json['publicEndpointDomainName'] ?? '',
    encryptionSpec: decode(json['encryptionSpec'], EncryptionSpec.fromJson),
    satisfiesPzs: json['satisfiesPzs'] ?? false,
    satisfiesPzi: json['satisfiesPzi'] ?? false,
  );
}