SearchNearestEntitiesRequest.fromJson constructor

SearchNearestEntitiesRequest.fromJson(
  1. Object? j
)

Implementation

factory SearchNearestEntitiesRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return SearchNearestEntitiesRequest(
    featureView: switch (json['featureView']) {
      null => '',
      Object $1 => decodeString($1),
    },
    query: switch (json['query']) {
      null => null,
      Object $1 => NearestNeighborQuery.fromJson($1),
    },
    returnFullEntity: switch (json['returnFullEntity']) {
      null => false,
      Object $1 => decodeBool($1),
    },
  );
}