Skip to content

Not able to handle NULL #1590

Closed
Closed

Description

@sunil456

Hi I am Currently trying to switch From Gson To Moshi But I am Facing Issues like Required value 'y' missing at $
and It's Not a Support Unit type in Kotlin.
Here is My Code Example :
{"Key":"value"} This is my Request to My API
And
{"key":"value","key":"value"} This is My Response
And My Data class like:
@JsonClass(generateAdapter = true)
data class ApiResponse(
@JSON(name = "x")
val x: String,
@JSON(name = "y")
val y: T,
@JSON(name = "z")
val z: z,
@JSON(name = "a")
val a: String,
@JSON(name = "b")
val b: String?,
@JSON(name = "c")
val c: List?,
)

Activity

  1. locked and limited conversation to collaborators on Nov 29, 2022
  2. converted this issue into a discussion #1591 on Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions