editComment method
Implementation
Future<Comment> editComment(int documentId, int commentId,
{String? text, Map<String, dynamic>? resource}) async {
final response = await dio.put('/comments/$documentId/$commentId',
data: {'resource': resource, 'text': text});
return Comment.fromJson(response.data);
}