getFooterCommentById method

Future<FooterCommentModel> getFooterCommentById({
  1. required int commentId,
  2. String? bodyFormat,
  3. int? version,
  4. bool? serializeIdsAsStrings,
})

Retrieves a footer comment by id

Permissions required: Permission to view the content of the page or blogpost and its corresponding space.

Implementation

Future<FooterCommentModel> getFooterCommentById(
    {required int commentId,
    String? bodyFormat,
    int? version,
    bool? serializeIdsAsStrings}) async {
  return FooterCommentModel.fromJson(await _client.send(
    'get',
    'footer-comments/{comment-id}',
    pathParameters: {
      'comment-id': '$commentId',
    },
    queryParameters: {
      if (bodyFormat != null) 'body-format': bodyFormat,
      if (version != null) 'version': '$version',
      if (serializeIdsAsStrings != null)
        'serialize-ids-as-strings': '$serializeIdsAsStrings',
    },
  ));
}