Make description in grade descriptive scrpper pojo nullable
This commit is contained in:
parent
368cfac7b1
commit
96051b36bc
4 changed files with 4 additions and 3 deletions
|
@ -18,7 +18,7 @@ ext {
|
|||
moshi = "1.13.0"
|
||||
}
|
||||
|
||||
version = "2.0.8"
|
||||
version = "2.0.9-SNAPSHOT"
|
||||
group = "io.github.wulkanowy"
|
||||
|
||||
nexusPublishing {
|
||||
|
|
|
@ -482,6 +482,7 @@ public final class io/github/wulkanowy/sdk/scrapper/grades/GradeDescriptive {
|
|||
public static final field Companion Lio/github/wulkanowy/sdk/scrapper/grades/GradeDescriptive$Companion;
|
||||
public synthetic fun <init> (IZLjava/lang/String;Ljava/lang/String;Lkotlinx/serialization/internal/SerializationConstructorMarker;)V
|
||||
public fun <init> (ZLjava/lang/String;Ljava/lang/String;)V
|
||||
public synthetic fun <init> (ZLjava/lang/String;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
public final fun component1 ()Z
|
||||
public final fun component2 ()Ljava/lang/String;
|
||||
public final fun component3 ()Ljava/lang/String;
|
||||
|
|
|
@ -69,5 +69,5 @@ data class GradeDescriptive(
|
|||
val subject: String,
|
||||
|
||||
@SerialName("Opis")
|
||||
val description: String,
|
||||
val description: String? = "",
|
||||
)
|
||||
|
|
|
@ -56,7 +56,7 @@ internal fun ScrapperGrades.mapGrades() = Grades(
|
|||
internal fun List<ScrapperGradeDescriptive>.mapDescriptive() = map {
|
||||
GradeDescriptive(
|
||||
subject = it.subject,
|
||||
description = it.description,
|
||||
description = it.description.orEmpty(),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue