FeatureView.fromJson constructor
FeatureView.fromJson(
- Object? j
Implementation
factory FeatureView.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return FeatureView(
bigQuerySource: switch (json['bigQuerySource']) {
null => null,
Object $1 => FeatureView_BigQuerySource.fromJson($1),
},
featureRegistrySource: switch (json['featureRegistrySource']) {
null => null,
Object $1 => FeatureView_FeatureRegistrySource.fromJson($1),
},
vertexRagSource: switch (json['vertexRagSource']) {
null => null,
Object $1 => FeatureView_VertexRagSource.fromJson($1),
},
name: switch (json['name']) {
null => '',
Object $1 => decodeString($1),
},
createTime: switch (json['createTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
updateTime: switch (json['updateTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
etag: switch (json['etag']) {
null => '',
Object $1 => decodeString($1),
},
labels: switch (json['labels']) {
null => {},
Map<String, Object?> $1 => {
for (final e in $1.entries)
decodeString(e.key): decodeString(e.value),
},
_ => throw const FormatException('"labels" is not an object'),
},
syncConfig: switch (json['syncConfig']) {
null => null,
Object $1 => FeatureView_SyncConfig.fromJson($1),
},
vectorSearchConfig: switch (json['vectorSearchConfig']) {
null => null,
Object $1 => FeatureView_VectorSearchConfig.fromJson($1),
},
indexConfig: switch (json['indexConfig']) {
null => null,
Object $1 => FeatureView_IndexConfig.fromJson($1),
},
optimizedConfig: switch (json['optimizedConfig']) {
null => null,
Object $1 => FeatureView_OptimizedConfig.fromJson($1),
},
serviceAgentType: switch (json['serviceAgentType']) {
null => FeatureView_ServiceAgentType.$default,
Object $1 => FeatureView_ServiceAgentType.fromJson($1),
},
serviceAccountEmail: switch (json['serviceAccountEmail']) {
null => '',
Object $1 => decodeString($1),
},
satisfiesPzs: switch (json['satisfiesPzs']) {
null => false,
Object $1 => decodeBool($1),
},
satisfiesPzi: switch (json['satisfiesPzi']) {
null => false,
Object $1 => decodeBool($1),
},
bigtableMetadata: switch (json['bigtableMetadata']) {
null => null,
Object $1 => FeatureView_BigtableMetadata.fromJson($1),
},
);
}