Make kinship optional
This commit is contained in:
parent
f7e0df0241
commit
d212ea8109
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ data class StudentGuardian(
|
||||||
val lastName: String,
|
val lastName: String,
|
||||||
|
|
||||||
@Json(name = "StPokrewienstwa")
|
@Json(name = "StPokrewienstwa")
|
||||||
val kinship: String,
|
val kinship: String?,
|
||||||
|
|
||||||
@Json(name = "Adres")
|
@Json(name = "Adres")
|
||||||
val address: String,
|
val address: String,
|
||||||
|
|
|
@ -36,6 +36,6 @@ private fun ScrapperStudentGuardian.toFamilyMember() = StudentGuardian(
|
||||||
fullName = fullName,
|
fullName = fullName,
|
||||||
email = email.orEmpty(),
|
email = email.orEmpty(),
|
||||||
address = address,
|
address = address,
|
||||||
kinship = kinship,
|
kinship = kinship.orEmpty(),
|
||||||
phones = phone
|
phones = phone
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue