Skip to content

Commit

Permalink
Remove unneeded Serialized name and add subclass to Response
Browse files Browse the repository at this point in the history
  • Loading branch information
hafizrahman committed Dec 12, 2024
1 parent 0a0d3eb commit 3c423f4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package org.wordpress.android.fluxc.network.rest.wpcom.wc.order
import com.google.gson.JsonDeserializationContext
import com.google.gson.JsonDeserializer
import com.google.gson.JsonElement
import com.google.gson.annotations.SerializedName
import java.lang.reflect.Type
import org.wordpress.android.fluxc.network.Response

data class BatchOrderApiResponse(
@SerializedName("update") val update: List<OrderResponse>
) {
val update: List<OrderResponse>
) : Response {
sealed class OrderResponse {
data class Success(
val order: OrderDto
Expand Down

0 comments on commit 3c423f4

Please sign in to comment.