StreamingFetchFeatureValuesRequest.fromJson constructor
StreamingFetchFeatureValuesRequest.fromJson(
- Object? j
Implementation
factory StreamingFetchFeatureValuesRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return StreamingFetchFeatureValuesRequest(
featureView: switch (json['featureView']) {
null => '',
Object $1 => decodeString($1),
},
dataKeys: switch (json['dataKeys']) {
null => [],
List<Object?> $1 => [
for (final i in $1) FeatureViewDataKey.fromJson(i),
],
_ => throw const FormatException('"dataKeys" is not a list'),
},
dataFormat: switch (json['dataFormat']) {
null => FeatureViewDataFormat.$default,
Object $1 => FeatureViewDataFormat.fromJson($1),
},
);
}