FeatureView.fromJson constructor
FeatureView.fromJson(
- Map<String, dynamic> json
)
Implementation
factory FeatureView.fromJson(Map<String, dynamic> json) {
return FeatureView(
bigQuerySource: decode(
json['bigQuerySource'],
FeatureView_BigQuerySource.fromJson,
),
featureRegistrySource: decode(
json['featureRegistrySource'],
FeatureView_FeatureRegistrySource.fromJson,
),
vertexRagSource: decode(
json['vertexRagSource'],
FeatureView_VertexRagSource.fromJson,
),
name: json['name'] ?? '',
createTime: decodeCustom(json['createTime'], protobuf.Timestamp.fromJson),
updateTime: decodeCustom(json['updateTime'], protobuf.Timestamp.fromJson),
etag: json['etag'] ?? '',
labels: decodeMap(json['labels']) ?? {},
syncConfig: decode(json['syncConfig'], FeatureView_SyncConfig.fromJson),
vectorSearchConfig: decode(
json['vectorSearchConfig'],
FeatureView_VectorSearchConfig.fromJson,
),
indexConfig: decode(
json['indexConfig'],
FeatureView_IndexConfig.fromJson,
),
optimizedConfig: decode(
json['optimizedConfig'],
FeatureView_OptimizedConfig.fromJson,
),
serviceAgentType:
decodeEnum(
json['serviceAgentType'],
FeatureView_ServiceAgentType.fromJson,
) ??
FeatureView_ServiceAgentType.$default,
serviceAccountEmail: json['serviceAccountEmail'] ?? '',
satisfiesPzs: json['satisfiesPzs'] ?? false,
satisfiesPzi: json['satisfiesPzi'] ?? false,
bigtableMetadata: decode(
json['bigtableMetadata'],
FeatureView_BigtableMetadata.fromJson,
),
);
}