StreamingReadFeatureValuesRequest.fromJson constructor
StreamingReadFeatureValuesRequest.fromJson(
- Object? j
Implementation
factory StreamingReadFeatureValuesRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return StreamingReadFeatureValuesRequest(
entityType: switch (json['entityType']) {
null => '',
Object $1 => decodeString($1),
},
entityIds: switch (json['entityIds']) {
null => [],
List<Object?> $1 => [for (final i in $1) decodeString(i)],
_ => throw const FormatException('"entityIds" is not a list'),
},
featureSelector: switch (json['featureSelector']) {
null => null,
Object $1 => FeatureSelector.fromJson($1),
},
);
}