package kr.co.vividnext.sodalive.notice import java.time.LocalDateTime data class CreateNoticeRequest( val title: String, val content: String, val publishAt: String? = null ) { fun toEntity(publishAt: LocalDateTime? = null): ServiceNotice { return ServiceNotice(title, content, publishAt = publishAt, isScheduled = publishAt != null) } }