106353 次浏览

public class Person {


@SerializedName("name")
private String personName;


@SerializedName("bd")
private String birthDate;


}

{
"name":"chintan",
"bd":"01-01-1990"
}

{
"name":"John Doe",
}

@SerializedName("name")
var userName: String,

{
"name":"John Doe",
"id":"1478"
}

data class User(
@SerializedName("name") val userName: String,
@SerializedName("id") val userId: Int
)