BatchReadFeatureValuesRequest.fromJson constructor

BatchReadFeatureValuesRequest.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory BatchReadFeatureValuesRequest.fromJson(Map<String, dynamic> json) {
  return BatchReadFeatureValuesRequest(
    csvReadInstances: decode(json['csvReadInstances'], CsvSource.fromJson),
    bigqueryReadInstances: decode(
      json['bigqueryReadInstances'],
      BigQuerySource.fromJson,
    ),
    featurestore: json['featurestore'] ?? '',
    destination: decode(
      json['destination'],
      FeatureValueDestination.fromJson,
    ),
    passThroughFields:
        decodeListMessage(
          json['passThroughFields'],
          BatchReadFeatureValuesRequest_PassThroughField.fromJson,
        ) ??
        [],
    entityTypeSpecs:
        decodeListMessage(
          json['entityTypeSpecs'],
          BatchReadFeatureValuesRequest_EntityTypeSpec.fromJson,
        ) ??
        [],
    startTime: decodeCustom(json['startTime'], protobuf.Timestamp.fromJson),
  );
}