appBskyUnspeccedGetTrendingTopics function

Future<XRPCResponse<UnspeccedGetTrendingTopicsOutput>> appBskyUnspeccedGetTrendingTopics({
  1. String? viewer,
  2. int? limit,
  3. required ServiceContext $ctx,
  4. Map<String, String>? $headers,
  5. Map<String, String>? $unknown,
})

Get a list of trending topics

Implementation

Future<XRPCResponse<UnspeccedGetTrendingTopicsOutput>>
appBskyUnspeccedGetTrendingTopics({
  String? viewer,
  int? limit,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.appBskyUnspeccedGetTrendingTopics,
  headers: $headers,
  parameters: {
    ...?$unknown,
    if (viewer != null) 'viewer': viewer,
    if (limit != null) 'limit': limit,
  },
  to: const UnspeccedGetTrendingTopicsOutputConverter().fromJson,
);