package mx.trackermap.TrackerMap.client.infrastructure import java.time.LocalDateTime import java.time.format.DateTimeFormatter class LocalDateTimeAdapter { fun toJson(value: LocalDateTime): String { return DateTimeFormatter.ISO_LOCAL_DATE_TIME.format(value) } fun fromJson(value: String): LocalDateTime { return LocalDateTime.parse(value, DateTimeFormatter.ISO_LOCAL_DATE_TIME) } }