listCommentsToEntity static method
Implementation
static domain.ListComments listCommentsToEntity(infra.ListCommentsResponse response) =>
domain.ListComments(
ok: response.ok,
page: response.data.page,
pageSize: response.data.pageSize,
totalPages: response.data.totalPages,
totalData: response.data.totalData,
comments: response.data.comments
.map(
(c) => domain.Comment(
id: c.id,
admin: c.admin,
archived: c.archived,
atype: c.atype,
category: c.category,
executeDate: c.executeDate,
extraPoints: c.extraPoints,
moderation: c.moderation,
ownerName: c.ownerName,
points: c.points,
state: c.state,
team: c.team,
participant: ParticipantMapper.toEntity(c.participant),
editableBy: c.editableBy,
deleteableBy: c.deleteableBy,
voted: c.voted,
body: c.body,
tags: c.tags,
participantsTags: c.participantsTags,
),
)
.toList(),
);