FetchFeatureValuesResponse.fromJson constructor

FetchFeatureValuesResponse.fromJson(
  1. Object? j
)

Implementation

factory FetchFeatureValuesResponse.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return FetchFeatureValuesResponse(
    keyValues: switch (json['keyValues']) {
      null => null,
      Object $1 =>
        FetchFeatureValuesResponse_FeatureNameValuePairList.fromJson($1),
    },
    protoStruct: switch (json['protoStruct']) {
      null => null,
      Object $1 => protobuf.Struct.fromJson($1),
    },
    dataKey: switch (json['dataKey']) {
      null => null,
      Object $1 => FeatureViewDataKey.fromJson($1),
    },
  );
}