getInlineCommentById method

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

Retrieves an inline comment by id

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

Implementation

Future<InlineCommentModel> getInlineCommentById(
    {required int commentId,
    String? bodyFormat,
    int? version,
    bool? serializeIdsAsStrings}) async {
  return InlineCommentModel.fromJson(await _client.send(
    'get',
    'inline-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',
    },
  ));
}