getBlogpostContentProperties method

Future<MultiEntityResult<ContentProperty>> getBlogpostContentProperties({
  1. required int blogpostId,
  2. String? key,
  3. String? sort,
  4. String? cursor,
  5. int? limit,
})

Retrieves all Content Properties tied to a specified blog post.

Permissions required: Permission to view the blog post.

Implementation

Future<MultiEntityResult<ContentProperty>> getBlogpostContentProperties(
    {required int blogpostId,
    String? key,
    String? sort,
    String? cursor,
    int? limit}) async {
  return MultiEntityResult.fromJson(
    await _client.send(
      'get',
      'blogposts/{blogpost-id}/properties',
      pathParameters: {
        'blogpost-id': '$blogpostId',
      },
      queryParameters: {
        if (key != null) 'key': key,
        if (sort != null) 'sort': sort,
        if (cursor != null) 'cursor': cursor,
        if (limit != null) 'limit': '$limit',
      },
    ),
    reviver: (v) => ContentProperty.fromJson(v as Map<String, Object?>),
  );
}