Make field dyrektorzy nullable
This commit is contained in:
parent
cd31377aed
commit
dab976890f
2 changed files with 2 additions and 2 deletions
|
@ -439,7 +439,7 @@ internal class StudentPlusRepository(
|
||||||
name = name,
|
name = name,
|
||||||
address = "${it.street} $streetNumber, ${it.postcode} ${it.town}",
|
address = "${it.street} $streetNumber, ${it.postcode} ${it.town}",
|
||||||
contact = it.workPhone,
|
contact = it.workPhone,
|
||||||
headmaster = it.headmasters.firstOrNull().orEmpty(),
|
headmaster = it.headmasters?.firstOrNull().orEmpty(),
|
||||||
pedagogue = "",
|
pedagogue = "",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ internal data class SchoolPlus(
|
||||||
@SerialName("kodPocztowy") val postcode: String,
|
@SerialName("kodPocztowy") val postcode: String,
|
||||||
@SerialName("nrDomu") val buildingNumber: String,
|
@SerialName("nrDomu") val buildingNumber: String,
|
||||||
@SerialName("nrMieszkania") val apartmentNumber: String,
|
@SerialName("nrMieszkania") val apartmentNumber: String,
|
||||||
@SerialName("dyrektorzy") val headmasters: List<String>,
|
@SerialName("dyrektorzy") val headmasters: List<String>?,
|
||||||
@SerialName("stronaWwwUrl") val website: String,
|
@SerialName("stronaWwwUrl") val website: String,
|
||||||
@SerialName("mail") val email: String,
|
@SerialName("mail") val email: String,
|
||||||
@SerialName("telSluzbowy") val workPhone: String,
|
@SerialName("telSluzbowy") val workPhone: String,
|
||||||
|
|
Loading…
Reference in a new issue