aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/LocalDateAdapter.kt
blob: 71426653115ff74282f9c22b8125c96a565072e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package mx.trackermap.TrackerMap.client.infrastructure

import kotlinx.datetime.LocalDate


class LocalDateAdapter {
    fun toJson(value: LocalDate): String {
        return value.toString()
    }

    fun fromJson(value: String): LocalDate {
        return LocalDate.parse(value)
    }
}