Make kinship optional

This commit is contained in:
Mikołaj Pich 2021-05-13 09:57:01 +02:00
parent f7e0df0241
commit d212ea8109
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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
) )