12
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user