toEntity method

  1. @override
PostLikeEntity toEntity({
  1. String? appId,
})
override

Implementation

@override
PostLikeEntity toEntity({String? appId}) {
  return PostLikeEntity(
    postId: postId,
    postCommentId: (postCommentId != null) ? postCommentId : null,
    memberId: memberId,
    timestamp: (timestamp == null) ? null : timestamp!.millisecondsSinceEpoch,
    appId: appId,
    likeType: (likeType != null) ? likeType!.index : null,
  );
}