Make kinship optional

(cherry picked from commit d212ea8109)
This commit is contained in:
Mikołaj Pich 2021-05-13 09:57:01 +02:00
parent 3912251fe5
commit bb203582da
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ data class StudentGuardian(
val lastName: String,
@Json(name = "StPokrewienstwa")
val kinship: String,
val kinship: String?,
@Json(name = "Adres")
val address: String,

View file

@ -36,6 +36,6 @@ private fun ScrapperStudentGuardian.toFamilyMember() = StudentGuardian(
fullName = fullName,
email = email.orEmpty(),
address = address,
kinship = kinship,
kinship = kinship.orEmpty(),
phones = phone
)