getBlogBySlug method
Implementation
Future<BlogPost> getBlogBySlug({
required String slug,
required int appId,
}) async {
requireSmartLinksNativeBridge();
final payload = await SmartLinksNativeApi.getBlogPost(slug);
if (payload != null) {
final post = _parseBlogPostPayload(payload);
if (post != null) {
return post;
}
}
throw Exception('Blog post not found');
}