getInlineCommentChildren method

Future<MultiEntityResult<InlineCommentChildrenModel>> getInlineCommentChildren({
  1. required int id,
  2. String? bodyFormat,
  3. String? sort,
  4. String? cursor,
  5. int? limit,
})

Returns the children inline comments of specific comment. The number of results is limited by the limit parameter and additional results (if available) will be available through the next URL present in the Link response header.

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

Implementation

Future<MultiEntityResult<InlineCommentChildrenModel>>
    getInlineCommentChildren(
        {required int id,
        String? bodyFormat,
        String? sort,
        String? cursor,
        int? limit}) async {
  return MultiEntityResult.fromJson(
    await _client.send(
      'get',
      'inline-comments/{id}/children',
      pathParameters: {
        'id': '$id',
      },
      queryParameters: {
        if (bodyFormat != null) 'body-format': bodyFormat,
        if (sort != null) 'sort': sort,
        if (cursor != null) 'cursor': cursor,
        if (limit != null) 'limit': '$limit',
      },
    ),
    reviver: (v) =>
        InlineCommentChildrenModel.fromJson(v as Map<String, Object?>),
  );
}