mvx-utils
v0.2.1
Published
mvx's utils
Downloads
1
Readme
mvx-utils
SerializedName注解的使用
class UserInfo {
@SerializedName("userName")
public name:string|null=null;
}
let userInfo = new UserInfo();
userInfo.name = "coderlang";
const [json, err] = new Json().toJson(userInfo);
console.log("json", json);
json值为:{"userName":"coderlang"}'