📜  通过 gson 用 json 映射 pojo - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:02.578000             🧑  作者: Mango

代码示例1
class SaltPOJO {
        @SerializedName("CODE")
        private String code = null;
        @SerializedName("USER")
        private User user = null;
        ...

        class User {
            @SerializedName("E_MAIL")
            private String e_mail = null;
            @SerializedName("SALT")
            private String salt = null;