mirror of
https://github.com/openMF/mifos-mobile.git
synced 2026-02-06 11:26:51 +00:00
Fix: Handle missing fields in client profile API response (#3097)
This commit is contained in:
parent
36206fa808
commit
7516d55272
@ -79,24 +79,24 @@ fun ClientClassificationResponseDto.toModel(): ClientClassification =
|
||||
ClientClassification(
|
||||
id = id,
|
||||
name = name,
|
||||
active = active,
|
||||
mandatory = mandatory,
|
||||
active = active ?: false,
|
||||
mandatory = mandatory ?: false,
|
||||
)
|
||||
|
||||
fun ClientTypeResponseDto.toModel(): ClientType =
|
||||
ClientType(
|
||||
id = id,
|
||||
name = name,
|
||||
active = active,
|
||||
mandatory = mandatory,
|
||||
active = active ?: false,
|
||||
mandatory = mandatory ?: false,
|
||||
)
|
||||
|
||||
fun GenderResponseDto.toModel(): Gender =
|
||||
Gender(
|
||||
id = id,
|
||||
name = name,
|
||||
active = active,
|
||||
mandatory = mandatory,
|
||||
active = active ?: false,
|
||||
mandatory = mandatory ?: false,
|
||||
)
|
||||
|
||||
fun GroupResponseDto.toModel(): Group =
|
||||
|
||||
@ -15,6 +15,6 @@ import kotlinx.serialization.Serializable
|
||||
data class ClientClassificationResponseDto(
|
||||
val id: Int,
|
||||
val name: String? = null,
|
||||
val active: Boolean,
|
||||
val mandatory: Boolean,
|
||||
val active: Boolean? = null,
|
||||
val mandatory: Boolean? = null,
|
||||
)
|
||||
|
||||
@ -15,6 +15,6 @@ import kotlinx.serialization.Serializable
|
||||
data class ClientTypeResponseDto(
|
||||
val id: Int,
|
||||
val name: String? = null,
|
||||
val active: Boolean,
|
||||
val mandatory: Boolean,
|
||||
val active: Boolean? = null,
|
||||
val mandatory: Boolean? = null,
|
||||
)
|
||||
|
||||
@ -15,6 +15,6 @@ import kotlinx.serialization.Serializable
|
||||
data class GenderResponseDto(
|
||||
val id: Int,
|
||||
val name: String? = null,
|
||||
val active: Boolean,
|
||||
val mandatory: Boolean,
|
||||
val active: Boolean? = null,
|
||||
val mandatory: Boolean? = null,
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user