BatchReadFeatureValuesRequest.fromJson constructor
BatchReadFeatureValuesRequest.fromJson(
- Object? j
Implementation
factory BatchReadFeatureValuesRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return BatchReadFeatureValuesRequest(
csvReadInstances: switch (json['csvReadInstances']) {
null => null,
Object $1 => CsvSource.fromJson($1),
},
bigqueryReadInstances: switch (json['bigqueryReadInstances']) {
null => null,
Object $1 => BigQuerySource.fromJson($1),
},
featurestore: switch (json['featurestore']) {
null => '',
Object $1 => decodeString($1),
},
destination: switch (json['destination']) {
null => null,
Object $1 => FeatureValueDestination.fromJson($1),
},
passThroughFields: switch (json['passThroughFields']) {
null => [],
List<Object?> $1 => [
for (final i in $1)
BatchReadFeatureValuesRequest_PassThroughField.fromJson(i),
],
_ => throw const FormatException('"passThroughFields" is not a list'),
},
entityTypeSpecs: switch (json['entityTypeSpecs']) {
null => [],
List<Object?> $1 => [
for (final i in $1)
BatchReadFeatureValuesRequest_EntityTypeSpec.fromJson(i),
],
_ => throw const FormatException('"entityTypeSpecs" is not a list'),
},
startTime: switch (json['startTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
);
}