This commit is contained in:
2025-10-06 08:11:43 +03:00
parent 8cfad121b2
commit 9500d747b1
3 changed files with 103 additions and 6 deletions

View File

@@ -16,9 +16,9 @@ data class LocationOutDto(
@Json(name = "name")
val name: String,
@Json(name = "color")
val color: String,
val color: String?,
@Json(name = "isArchived")
val isArchived: Boolean,
val isArchived: Boolean?,
@Json(name = "createdAt")
val createdAt: String,
@Json(name = "updatedAt")
@@ -35,8 +35,8 @@ fun LocationOutDto.toDomain(): LocationOut {
return LocationOut(
id = this.id,
name = this.name,
color = this.color,
isArchived = this.isArchived,
color = this.color ?: "#000000",
isArchived = this.isArchived ?: false,
createdAt = this.createdAt,
updatedAt = this.updatedAt
)