FindNeighborsResponse.fromJson constructor
FindNeighborsResponse.fromJson(
- Object? j
Implementation
factory FindNeighborsResponse.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return FindNeighborsResponse(
nearestNeighbors: switch (json['nearestNeighbors']) {
null => [],
List<Object?> $1 => [
for (final i in $1)
FindNeighborsResponse_NearestNeighbors.fromJson(i),
],
_ => throw const FormatException('"nearestNeighbors" is not a list'),
},
);
}