ImportFeatureValuesRequest.fromJson constructor
ImportFeatureValuesRequest.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ImportFeatureValuesRequest.fromJson(Map<String, dynamic> json) {
return ImportFeatureValuesRequest(
avroSource: decode(json['avroSource'], AvroSource.fromJson),
bigquerySource: decode(json['bigquerySource'], BigQuerySource.fromJson),
csvSource: decode(json['csvSource'], CsvSource.fromJson),
featureTimeField: json['featureTimeField'],
featureTime: decodeCustom(
json['featureTime'],
protobuf.Timestamp.fromJson,
),
entityType: json['entityType'] ?? '',
entityIdField: json['entityIdField'] ?? '',
featureSpecs:
decodeListMessage(
json['featureSpecs'],
ImportFeatureValuesRequest_FeatureSpec.fromJson,
) ??
[],
disableOnlineServing: json['disableOnlineServing'] ?? false,
workerCount: json['workerCount'] ?? 0,
disableIngestionAnalysis: json['disableIngestionAnalysis'] ?? false,
);
}